function quant_menu in Quant 7
Same name and namespace in other branches
- 6 quant.module \quant_menu()
Implements hook_menu().
File
- ./
quant.module, line 42
Code
function quant_menu() {
$items = array();
// Main analytics page
$items['analytics'] = array(
'title' => 'Site analytics',
'description' => 'View charts depicting action over time for many Drupal components.',
'page callback' => 'quant_page',
'access arguments' => array(
'view analytics page',
),
'type' => MENU_NORMAL_ITEM,
'file' => 'quant.pages.inc',
);
// Also provide an analytics link in the admin reports
$items['admin/reports/analytics'] = $items['analytics'];
// Settings page
$items['admin/config/media/quant'] = array(
'title' => 'Quant (analytics)',
'description' => 'Configure the quantitative analytics page',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'quant_admin_settings',
),
'access arguments' => array(
'administer quant',
),
'type' => MENU_NORMAL_ITEM,
'file' => 'quant.admin.inc',
);
return $items;
}