help_menu
- Versions
- 4.6 – 5
help_menu($may_cache)- 6 – 7
help_menu()
Implementation of hook_menu().
Code
modules/help.module, line 11
<?php
function help_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array('path' => 'admin/help', 'title' => t('help'),
'callback' => 'help_main',
'access' => user_access('access administration pages'),
'weight' => 9);
foreach (module_list() as $name) {
if (module_hook($name, 'help')) {
$items[] = array('path' => 'admin/help/' . $name,
'title' => t($name),
'callback' => 'help_page',
'type' => MENU_CALLBACK,
'access' => user_access('access administration pages'));
}
}
}
return $items;
}
?>Login or register to post comments 