function analytics_menu in Analytics 6
Same name and namespace in other branches
- 7 analytics.module \analytics_menu()
Implementation of hook_menu().
File
- ./
analytics.module, line 31 - Provides an API for tracking anlytics about your Drupal site.
Code
function analytics_menu() {
$items = array();
$items['admin/settings/analytics'] = array(
'title' => 'Analytics settings',
'description' => 'Configure settings for capturing analytics',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'analytics_settings_form',
),
'access arguments' => array(
'administer analytics settings',
),
'file' => 'analytics.admin.inc',
'type' => MENU_NORMAL_ITEM,
);
$items['analytics/api/%'] = array(
'title' => 'Analytics settings',
'page callback' => 'analytics_js_callback',
'page arguments' => array(
2,
),
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
return $items;
}