Index: jscalendar/jscalendar.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/jstools/jscalendar/jscalendar.info,v
retrieving revision 1.2
diff -u -r1.2 jscalendar.info
--- jscalendar/jscalendar.info	18 Jun 2007 22:53:47 -0000	1.2
+++ jscalendar/jscalendar.info	18 Feb 2008 00:13:39 -0000
@@ -2,3 +2,4 @@
 name = JS Calendar
 description = Enables popup calendars for selecting dates using the jscalendar library.
 package = Javascript tools
+core = 6.x
Index: jscalendar/jscalendar.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/jstools/jscalendar/jscalendar.module,v
retrieving revision 1.16
diff -u -r1.16 jscalendar.module
--- jscalendar/jscalendar.module	21 Jun 2007 23:03:00 -0000	1.16
+++ jscalendar/jscalendar.module	18 Feb 2008 00:13:39 -0000
@@ -22,31 +22,31 @@
 /**
  * Implementation of hook_menu()
  */
-function jscalendar_menu($may_cache){
-  $items = array();
-  if ($may_cache) {
-    $items[] = array(
-      'path' => 'admin/settings/jscalendar',
-      'title' => t('JS Calendar'),
-      'description' => t('Configurations for the popup calendar'),
-      'callback' => 'drupal_get_form',
-      'callback arguments' => array('jscalendar_admin_settings')
-    );
-    
-  }
+function jscalendar_menu(){
+  
+  $items['admin/settings/jscalendar'] = array(
+    'title' => t('JS Calendar'),
+    'description' => t('Configurations for the popup calendar'),
+    'page callback' => 'drupal_get_form',
+    'page arguments' => array('jscalendar_admin_settings'),
+  	'access arguments' => array('administer site configuration'),
+    'type' => MENU_NORMAL_ITEM,
+  );
   return $items;
 }
 
 /**
  * Implementation of hook_form_alter().
  */
-function jscalendar_form_alter($form_id, &$form) {
+function jscalendar_form_alter(&$form, $form_state, $form_id) {
   if ($form_id == 'comment_form' && isset($form['admin']) && isset($form['admin']['date'])) {
     $form['admin']['date']['#attributes'] = array('class' => 'jscalendar');
   }
-  elseif (isset($form['type']) && $form['type']['#value'] .'_node_form' == $form_id && isset($form['author']) && isset($form['author']['date'])) {
+  else if (isset($form['type'])  
+      && isset($form['author']) 
+      && isset($form['author']['date'])) {
     $form['author']['date']['#attributes'] = array('class' => 'jscalendar');
-  }
+  }/**/
   foreach (element_children($form) as $key) {
     if (isset($form[$key]) && isset($form[$key]['#attributes']) && isset($form[$key]['#attributes']['class']) && !(strpos($form[$key]['#attributes']['class'], 'jscalendar') === FALSE)) {
       jscalendar_load();
@@ -63,7 +63,7 @@
       }
     }
     // If necessary, recurse through all children.
-    jscalendar_form_alter($form_id, $form[$key]);
+    jscalendar_form_alter($form[$key], $form_state, $form_id );
   }
 }
 
@@ -110,7 +110,7 @@
   if ($loaded) {
     return;
   }
-
+  drupal_set_message('jscalendar_load()');
   // If the locale library hasn't been explicitly set, we look for support for the current locale.
   if (empty($lib_locale)) {
     // Supported directly.
Index: .project
===================================================================
RCS file: .project
diff -N .project
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ .project	1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>jstools-6</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.php.core.PhpIncrementalProjectBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.wst.validation.validationbuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.php.core.PHPNature</nature>
+	</natures>
+</projectDescription>
Index: .settings/org.eclipse.php.core.projectOptions.prefs
===================================================================
RCS file: .settings/org.eclipse.php.core.projectOptions.prefs
diff -N .settings/org.eclipse.php.core.projectOptions.prefs
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ .settings/org.eclipse.php.core.projectOptions.prefs	1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,5 @@
+#Sun Feb 17 13:20:34 MST 2008
+eclipse.preferences.version=1
+org.eclipse.php.core.contextRoot=
+org.eclipse.php.core.defaultEncoding=
+org.eclipse.php.core.includePath=<?xml version\="1.0" encoding\="UTF-8"?>\r\n<includepath>\r\n</includepath>\r\n
