Index: googleanalytics.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/google_analytics/googleanalytics.module,v
retrieving revision 1.9
diff -u -r1.9 googleanalytics.module
--- googleanalytics.module	15 Aug 2006 22:46:28 -0000	1.9
+++ googleanalytics.module	6 Sep 2006 03:55:47 -0000
@@ -11,13 +11,27 @@
 
 function googleanalytics_help($section) {
   switch ($section) {
-    case 'admin/modules#description':
-      return t('Adds tracking code to all pages of your site');
     case 'admin/settings/googleanalytics':
       return t('Google Analytics is a free statistics package based on the excellent Urchin system.');
   }
 }
 
+function googleanalytics_menu($maycache) {
+  $items = array();
+  if ($maycache) {
+    $items[] = array(
+      'path' => 'admin/settings/googleanalytics',
+      'title' => t('google analytics'),
+      'description' => t('Configure the settings used to generate your Google Analytics site map.'),
+      'callback' => 'drupal_get_form',
+      'callback arguments' => array('googleanalytics_admin_settings'),
+      'access' => user_access('administer site configuration'),
+      'type' => MENU_NORMAL_ITEM,
+    );
+  }
+  return $items;
+}
+
 /**
  * Implementation of hook_footer()  to insert Javascript at the end of the page
  */
@@ -50,7 +64,7 @@
 /**
  * Implementation of hook_settings() for configuring the module
  */
-function googleanalytics_settings() {
+function googleanalytics_admin_settings() {
   $form['account'] = array(
         '#type' => 'fieldset',
         '#title' => t('Analytics Account Settings'),
@@ -85,6 +99,6 @@
     );
   }
 
-  return $form;
+  return system_settings_form($form);
 }
-?>
\ No newline at end of file
+
--- D:/drupal/drupal_head/sites/all/modules/google_analytics/googleanalytics.info
+++ D:/drupal/drupal_head/sites/all/modules/google_analytics/googleanalytics.info
@@ -0,0 +1,3 @@
+; $Id: $
+name = Google Analytics
+description = Adds Google Analytics javascript tracking code to all your site's pages.


