function system_charts_menu in Google Chart Tools: Image Charts 6
Same name and namespace in other branches
- 5 contrib/system_charts/system_charts.module \system_charts_menu()
- 7 system_charts/system_charts.module \system_charts_menu()
Implementation of hook_menu().
File
- contrib/
system_charts/ system_charts.module, line 24 - Provides core Drupal chart implementations.
Code
function system_charts_menu() {
$items = array();
$items['admin/reports/charts'] = array(
'title' => 'System Charts',
'page callback' => 'system_charts',
'page arguments' => array(
'nodes',
),
'access arguments' => array(
'access system charts',
),
);
$items['admin/reports/charts/nodes'] = array(
'title' => 'Nodes',
'page callback' => 'system_charts',
'page arguments' => array(
'nodes',
),
'access arguments' => array(
'access system charts',
),
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/reports/charts/users'] = array(
'title' => 'Users',
'page callback' => 'system_charts',
'page arguments' => array(
'users',
),
'access arguments' => array(
'access system charts',
),
'type' => MENU_LOCAL_TASK,
);
$items['admin/reports/charts/watchdog'] = array(
'title' => 'Watchdog',
'page callback' => 'system_charts',
'page arguments' => array(
'watchdog',
),
'access arguments' => array(
'access system charts',
),
'type' => MENU_LOCAL_TASK,
);
return $items;
}