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

Implementation of hook_menu().

File

modules/help/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;
}