function quant_menu in Quant 6
Same name and namespace in other branches
- 7 quant.module \quant_menu()
Implementation of hook_menu()
File
- ./
quant.module, line 20
Code
function quant_menu() {
$path = drupal_get_path('module', 'quant') . '/includes';
$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' => 'pages.inc',
'file path' => $path,
);
// Also provide an analytics link in the admin reports
$items['admin/reports/analytics'] = $items['analytics'];
// Settings page
$items['admin/settings/quant'] = array(
'title' => 'Quant configuration (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' => 'forms.inc',
'file path' => $path,
);
return $items;
}