Index: googleanalytics.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/google_analytics/googleanalytics.module,v
retrieving revision 1.9
diff -u -F^f -r1.9 googleanalytics.module
--- googleanalytics.module	15 Aug 2006 22:46:28 -0000	1.9
+++ googleanalytics.module	16 Aug 2006 15:05:58 -0000
@@ -11,13 +11,28 @@
 
 function googleanalytics_help($section) {
   switch ($section) {
-    case 'admin/modules#description':
+    case 'admin/settings/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' => '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 +65,7 @@ function googleanalytics_footer($main = 
 /**
  * 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 +100,6 @@ function googleanalytics_settings() {
     );
   }
 
-  return $form;
+  return system_settings_form('googleanalytics_admin_settings', $form);
 }
-?>
\ No newline at end of file
+
