Index: hovertip.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/hovertip/hovertip.js,v
retrieving revision 1.1
diff -u -u -F^f -r1.1 hovertip.js
--- hovertip.js	15 Jan 2007 02:29:58 -0000	1.1
+++ hovertip.js	25 May 2007 22:01:29 -0000
@@ -9,7 +9,7 @@
  *  Requires jQuery.js.  <http://jquery.com>, 
  *  which may be distributed under a different licence.
  *  
- *  $Date: 2007/01/15 02:29:58 $
+ *  $Date: 2007-01-29 06:37:47 -0800 (Mon, 29 Jan 2007) $
  *  $Rev: $
  *  $Id: hovertip.js,v 1.1 2007/01/15 02:29:58 yogadex Exp $
  *  
Index: hovertip.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/hovertip/hovertip.module,v
retrieving revision 1.1
diff -u -u -F^f -r1.1 hovertip.module
--- hovertip.module	15 Jan 2007 02:29:58 -0000	1.1
+++ hovertip.module	25 May 2007 22:01:29 -0000
@@ -39,7 +39,10 @@ function hovertip_menu($may_cache) {
                      'type' => MENU_NORMAL_ITEM,
     );
   }
-  
+  else {
+    // Call our init hook.  See http://api.drupal.org/api/5/function/hook_init
+    _hovertip_init();
+  }
   return $items;
 }
 
@@ -55,9 +58,12 @@ function hovertip_settings_form() {
 }
 
 /**
- * Implemention of hook_init in which we load the necessary javascript and stylesheet files. 
+ * Load the necessary javascript and stylesheet files.
+ * This was once an implimentation of hook_init, however one cannot
+ * reliably call drupal_add_css or drupal_add_js from that function.  So
+ * instead we call this function from hook_menu.
  */
-function hovertip_init() {
+function _hovertip_init() {
   drupal_add_css(drupal_get_path('module', 'hovertip').'/hovertip.css');
   drupal_add_js(drupal_get_path('module', 'hovertip') . '/hovertip.js');
   drupal_add_js(_hovertip_get_javascript(), 'inline');
