function statspro_menu in Statistics Pro 6.2
Same name and namespace in other branches
- 6 statspro.module \statspro_menu()
Implementation of hook_menu().
Return value
array
File
- ./
statspro.module, line 54 - 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 pro reports',
),
'file' => 'statspro_overview.inc',
'type' => MENU_NORMAL_ITEM,
);
$items['admin/reports/statspro/overview'] = array(
'title' => 'Overview',
'access arguments' => array(
'access statistics pro reports',
),
'type' => MENU_DEFAULT_LOCAL_TASK,
'file' => 'statspro_overview.inc',
'weight' => -10,
);
$items['admin/reports/statspro/comment'] = array(
'title' => 'Comments',
'page callback' => 'statspro_comment',
'access arguments' => array(
'access statistics pro reports',
),
'type' => MENU_LOCAL_TASK,
'file' => 'statspro_comment.inc',
);
$items['admin/reports/statspro/log'] = array(
'title' => 'Logs',
'page callback' => 'statspro_log',
'access arguments' => array(
'access statistics pro reports',
),
'type' => MENU_LOCAL_TASK,
'file' => 'statspro_log.inc',
);
$items['admin/reports/statspro/node'] = array(
'title' => 'Nodes',
'page callback' => 'statspro_node',
'access arguments' => array(
'access statistics pro reports',
),
'type' => MENU_LOCAL_TASK,
'file' => 'statspro_node.inc',
);
$items['admin/reports/statspro/pi'] = array(
'title' => 'PIs',
'page callback' => 'statspro_pi',
'access arguments' => array(
'access statistics pro reports',
),
'type' => MENU_LOCAL_TASK,
'file' => 'statspro_pi.inc',
);
$items['admin/reports/statspro/user'] = array(
'title' => 'Users',
'page callback' => 'statspro_user',
'access arguments' => array(
'access statistics pro reports',
),
'type' => MENU_LOCAL_TASK,
'file' => 'statspro_user.inc',
);
$items['admin/reports/statspro/path_aggregated'] = array(
'title' => 'Path aggregated',
'description' => 'Statistics report with path aggregated access data.',
'page callback' => 'statspro_path_aggregated',
'file' => 'statspro_path_aggregated.inc',
'access arguments' => array(
'access statistics pro reports',
),
'type' => MENU_LOCAL_TASK,
);
$items['admin/settings/statspro'] = array(
'title' => 'Statistics Pro',
'description' => 'Statistics Pro settings.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'statspro_main_admin_settings_form',
),
'access arguments' => array(
'administer statistics pro settings',
),
'file' => 'statspro_admin_settings.inc',
'type' => MENU_NORMAL_ITEM,
);
$items['admin/settings/statspro/main'] = array(
'title' => 'Main',
'description' => 'Define the default period for the reports.',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['admin/settings/statspro/tools'] = array(
'title' => 'Tools',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'statspro_tools',
),
'access arguments' => array(
'administer statistics pro settings',
),
'file' => 'statspro_tools.inc',
'type' => MENU_LOCAL_TASK,
'weight' => -5,
);
$items['admin/settings/statspro/path_aggregator/list'] = array(
'title' => 'Path aggregators list',
'description' => 'List of all path aggregators.',
'page callback' => 'statspro_path_aggregator_list',
'access arguments' => array(
'administer statistics pro settings',
),
'file' => 'statspro_path_aggregated.inc',
'type' => MENU_LOCAL_TASK,
);
$items['admin/settings/statspro/path_aggregator/add'] = array(
'title' => 'Add path aggregator',
'description' => 'Add new path aggregator.',
'page callback' => 'statspro_path_aggregator_add',
'access arguments' => array(
'administer statistics pro settings',
),
'file' => 'statspro_path_aggregated.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 10,
);
$items['admin/settings/statspro/path_aggregator/edit'] = array(
'title' => 'Edit path aggregator',
'description' => 'Edit existing path aggregator.',
'page callback' => 'statspro_path_aggregator_edit',
'page arguments' => array(
5,
),
'access arguments' => array(
'administer statistics pro settings',
),
'file' => 'statspro_path_aggregated.inc',
'type' => MENU_CALLBACK,
);
$items['admin/settings/statspro/path_aggregator/delete'] = array(
'title' => 'Delete path aggregator',
'description' => 'Delete existing path aggregator.',
'page callback' => 'statspro_path_aggregator_delete',
'page arguments' => array(
5,
),
'access arguments' => array(
'administer statistics pro settings',
),
'file' => 'statspro_path_aggregated.inc',
'type' => MENU_CALLBACK,
);
return $items;
}