You are here

function google_analytics_counter_menu in Google Analytics Counter 7.3

Same name and namespace in other branches
  1. 6.2 google_analytics_counter.module \google_analytics_counter_menu()
  2. 6 google_analytics_counter.module \google_analytics_counter_menu()
  3. 7 google_analytics_counter.module \google_analytics_counter_menu()
  4. 7.2 google_analytics_counter.module \google_analytics_counter_menu()

Menu for this module

Return value

array An array with this module's settings.

File

./google_analytics_counter.module, line 105
Basic functions for this module.

Code

function google_analytics_counter_menu() {
  $items = array();
  $items['admin/config/system/google_analytics_counter'] = array(
    'title' => t('Google Analytics Counter'),
    'description' => t('Configure Google Analytics Counter module'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'google_analytics_counter_admin',
    ),
    'access arguments' => array(
      'administer google analytics counter',
    ),
    'weight' => 0,
  );

  // For the default local task, we need very little configuration, as the callback and other conditions are handled by the parent callback.
  $items['admin/config/system/google_analytics_counter/settings'] = array(
    'title' => t('Settings'),
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => 1,
  );
  $items['admin/config/system/google_analytics_counter/dashboard'] = array(
    'title' => t('Dashboard'),
    'description' => t('More information relevant to Google Analytics statistics for this site.'),
    'page callback' => 'google_analytics_counter_details',
    'access arguments' => array(
      'administer google analytics counter',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 2,
  );
  $items['admin/config/system/google_analytics_counter/authentication'] = array(
    'title' => t('GA authentication'),
    'description' => t('Authenticate access to a Google Analytics profile.'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'google_analytics_counter_auth_admin',
    ),
    'access arguments' => array(
      'administer google analytics counter',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 4,
  );
  $items['admin/config/system/google_analytics_counter/dashboard/reset'] = array(
    'title' => t('Reset module settings'),
    'description' => t('Reset all settings of this module. Sometimes useful if in trouble with OAuth authentication.'),
    'page callback' => 'google_analytics_counter_confirm_reset',
    'access arguments' => array(
      'administer google analytics counter',
    ),
    'type' => MENU_CALLBACK,
    'weight' => 9,
  );
  return $items;
}