You are here

function googleanalytics_menu in Google Analytics 6.3

Same name and namespace in other branches
  1. 5 googleanalytics.module \googleanalytics_menu()
  2. 6.4 googleanalytics.module \googleanalytics_menu()
  3. 6 googleanalytics.module \googleanalytics_menu()
  4. 6.2 googleanalytics.module \googleanalytics_menu()
  5. 7.2 googleanalytics.module \googleanalytics_menu()
  6. 7 googleanalytics.module \googleanalytics_menu()

Implementation of hook_menu().

File

./googleanalytics.module, line 57
Drupal Module: GoogleAnalytics Adds the required Javascript to the bottom of all your Drupal pages to allow tracking by the Google Analytics statistics package.

Code

function googleanalytics_menu() {
  $items['admin/settings/googleanalytics'] = array(
    'title' => 'Google Analytics',
    'description' => 'Configure the settings used to generate your Google Analytics tracking code.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'googleanalytics_admin_settings_form',
    ),
    'access arguments' => array(
      'administer google analytics',
    ),
    'file' => 'googleanalytics.admin.inc',
    'type' => MENU_NORMAL_ITEM,
  );
  return $items;
}