function statspro_menu in Statistics Pro 6
Same name and namespace in other branches
- 6.2 statspro.module \statspro_menu()
Implementation of hook_menu().
Return value
array
File
- ./
statspro.module, line 49 - Main module of Statistcs pro module
Code
function statspro_menu() {
$items = array();
$items['admin/reports/statspro'] = array(
'title' => 'Statistics Pro',
'description' => 'Content statistics',
'page callback' => 'statspro_overview',
'access arguments' => array(
'access statistics',
),
'file' => 'statspro.reports.inc',
'type' => MENU_NORMAL_ITEM,
);
$items['admin/reports/statspro/common'] = array(
'title' => 'Common',
'access arguments' => array(
'access statistics',
),
'type' => MENU_DEFAULT_LOCAL_TASK,
'file' => 'statspro.reports.inc',
'weight' => -10,
);
$items['admin/reports/statspro/tools'] = array(
'title' => 'Tools',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'statspro_tools',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'statspro.tools.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 10,
);
return $items;
}