### Eclipse Workspace Patch 1.0
#P drupal-contrib-5
Index: modules/jstools/jquery_cookie.info
===================================================================
RCS file: modules/jstools/jquery_cookie.info
diff -N modules/jstools/jquery_cookie.info
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ modules/jstools/jquery_cookie.info	1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,5 @@
+; $Id: $
+name = jQuery cookie plugin
+description = An API and central location for modules that use the JQuery cookie plugin.
+package = Javascript tools
+version = "$Name: DRUPAL-5 $"
Index: modules/jstools/jquery_cookie.module
===================================================================
RCS file: modules/jstools/jquery_cookie.module
diff -N modules/jstools/jquery_cookie.module
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ modules/jstools/jquery_cookie.module	1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,50 @@
+<?php
+// $Id: $
+
+/**
+ * This module is a central location for other modules to call the jquery
+ * cookie plugin jquery.cookie.js.
+ */
+
+/**
+ * Add JQuery cookie plugin to this page
+ */
+function jquery_cookie_add() {
+  static $done;
+  if (!isset($done)) {
+    $path = drupal_get_path('module', 'jstools') . '/jquery.cookie.js';
+    drupal_add_js($path);
+    $done = TRUE;
+  }
+}
+
+/**
+ * Implementation of hook_help().
+ */
+function jquery_cookie_help($section) {
+  switch ($section) {
+    case 'admin/help#jquery_cookie':
+      $output = '<p>'.t('The jQuery cookie plugin provides a common function to read and write cookies.').'</p>';
+      $output .= '<h3>'.t('Get the value of a cookie with the given name.').'<br />'.t("example: $.cookie('the_cookie');").'</h3>';
+      $output .= '<h3>'.t('Create a cookie with the given name and value and other optional parameters.').'</h3>';
+      $output .= '<p>'.t("example $.cookie('the_cookie', 'the_value');").'<br />';
+      $output .= t("example $.cookie('the_cookie', 'the_value');").'<br />';
+      $output .= t("desc Set the value of a cookie.").'<br />';
+      $output .= t("example $.cookie('the_cookie', 'the_value', {expires: 7, path: '/', domain: 'jquery.com', secure: true});").'<br />';
+      $output .= t("desc Create a cookie with all available options.").'<br />';
+      $output .= t("example $.cookie('the_cookie', 'the_value');").'<br />';
+      $output .= t("desc Create a session cookie.").'<br />';
+      $output .= t("example $.cookie('the_cookie', null);").'<br />';
+      $output .= t("desc Delete a cookie by passing null as value.").'<br /><br />';
+      $output .= t("param String name The name of the cookie.").'<br />';
+      $output .= t("param String value The value of the cookie.").'<br />';
+      $output .= t("param Object options An object literal containing key/value pairs to provide optional cookie attributes.").'<br />';
+      $output .= t("option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object.").'<br />';
+      $output .= t("-If a negative value is specified (e.g. a date in the past), the cookie will be deleted.").'<br />';
+      $output .= t("-If set to null or omitted, the cookie will be a session cookie and will not be retained when the the browser exits.").'<br />';
+      $output .= t("option String path The value of the path atribute of the cookie (default: path of page that created the cookie).").'<br />';
+      $output .= t("option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie).").'<br />';
+      $output .= t("option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will require a secure protocol (like HTTPS).").'</p>';
+      return $output;
+  }
+}
