You are here

function help_menu in Drupal 4

Same name and namespace in other branches
  1. 5 modules/help/help.module \help_menu()
  2. 6 modules/help/help.module \help_menu()
  3. 7 modules/help/help.module \help_menu()

Implementation of hook_menu().

File

modules/help.module, line 11
Manages displaying online help.

Code

function help_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $admin_access = user_access('access administration pages');
    $items[] = array(
      'path' => 'admin/help',
      'title' => t('help'),
      'callback' => 'help_main',
      'access' => $admin_access,
      'weight' => 9,
    );
    foreach (module_implements('help', TRUE) as $module) {
      $items[] = array(
        'path' => 'admin/help/' . $module,
        'title' => t($module),
        'callback' => 'help_page',
        'type' => MENU_CALLBACK,
        'access' => $admin_access,
      );
    }
  }
  return $items;
}