function system_charts_menu in Google Chart Tools: Image Charts 5
Same name and namespace in other branches
- 6 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 25 - Core drupal system charting. Developed by Tj Holowaychuk
Code
function system_charts_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'admin/logs/charts',
'title' => t('System Charts'),
'callback' => 'system_charts',
'access' => user_access('access system charts'),
);
$pages = system_charts_get_page_info();
foreach ($pages as $type => $page) {
$items[] = array(
'path' => 'admin/logs/charts/' . $type,
'title' => $page['#title'],
'callback' => 'system_charts',
'callback arguments' => array(
$type,
),
'access' => user_access('access system charts'),
'type' => $type == 'nodes' ? MENU_DEFAULT_LOCAL_TASK : MENU_LOCAL_TASK,
);
}
}
return $items;
}