function google_analytics_counter_menu in Google Analytics Counter 7.2
Same name and namespace in other branches
- 6.2 google_analytics_counter.module \google_analytics_counter_menu()
- 6 google_analytics_counter.module \google_analytics_counter_menu()
- 7.3 google_analytics_counter.module \google_analytics_counter_menu()
- 7 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 55 - 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',
),
//'type' => MENU_NORMAL_ITEM, // Not necessary since this is the default.
'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'),
//'description' => 'General 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,
);
// A shortcut to the permissions settings for this module.
$items['admin/config/system/google_analytics_counter/permissions'] = array(
'title' => t('Permissions'),
'description' => t('Configure access permissions'),
'page callback' => 'google_analytics_counter_perms',
'access arguments' => array(
'administer google analytics counter',
),
'type' => MENU_LOCAL_TASK,
'weight' => 5,
);
/* OAuth callback from Google */
$items['google_analytics_counter/oauth'] = array(
'title' => t('Google Analytics Reports OAuth Callback'),
'access callback' => TRUE,
'page callback' => 'google_analytics_counter_oauth_callback',
'type' => MENU_CALLBACK,
);
return $items;
}