You are here

function menu_help in Drupal 5

Same name and namespace in other branches
  1. 4 modules/menu.module \menu_help()
  2. 6 modules/menu/menu.module \menu_help()
  3. 7 modules/menu/menu.module \menu_help()

Implementation of hook_help().

File

modules/menu/menu.module, line 11
Allows administrators to customize the site navigation menu.

Code

function menu_help($section) {
  switch ($section) {
    case 'admin/help#menu':
      $output = t('<p>Menus are a collection of links (menu items) used to navigate a website. The menu module provides an interface to control and customize the powerful menu system that comes with Drupal. Menus are primarily displayed as a hierarchical list of links using Drupal\'s highly flexible <a href="@admin-block">blocks</a> feature. Each menu automatically creates a block of the same name. By default, new menu items are placed inside a built-in menu labelled %navigation, but administrators can also create custom menus.</p>
<p>Drupal themes generally provide out-of-the-box support for two menus commonly labelled %primary-links and %secondary-links. These are sets of links which are usually displayed in the header or footer of each page (depending on the currently active theme). Any menu can be designated as the primary or secondary links menu via the <a href="@menu-settings">menu settings page</a>.</p>
Menu administration tabs:
<ul>
  <li>On the administer menu page, administrators can "edit" to change the title, description, parent or weight of a menu item. Under the "operations" column, click on "enable/disable" to toggle a menu item on or off. Only menu items which are enabled are displayed in the corresponding menu block. Note that the default menu items generated by the menu module cannot be deleted, only disabled.</li>
  <li>Use the "add menu" tab to submit a title for a new custom menu. Once submitted, the menu will appear in a list toward the bottom of the administer menu page underneath the main navigation menu. Under the menu name there will be links to edit or delete the menu, and a link to add new items to the menu.</li>
  <li>Use the "add menu item" tab to create new links in either the navigation or a custom menu (such as a primary/secondary links menu). Select the parent item to place the new link within an existing menu structure. For top level menu items, choose the name of the menu in which the link is to be added.</li>
</ul>', array(
        '%navigation' => 'Navigation',
        '%primary-links' => 'primary links',
        '%secondary-links' => 'secondary links',
        '@admin-block' => url('admin/build/block'),
        '@menu-settings' => url('admin/build/menu/settings'),
      ));
      $output .= '<p>' . t('For more information please read the configuration and customization handbook <a href="@menu">Menu page</a>.', array(
        '@menu' => 'http://drupal.org/handbook/modules/menu/',
      )) . '</p>';
      return $output;
    case 'admin/build/menu':
      return '<p>' . t('Menus are a collection of links (menu items) used to navigate a website. The list(s) below display the currently available menus along with their menu items. Select an operation from the list to manage each menu or menu item.', array(
        '@admin-settings-menus' => url('admin/build/menu/settings'),
        '@admin-block' => url('admin/build/block'),
      )) . '</p>';
    case 'admin/build/menu/menu/add':
      return '<p>' . t('Enter the name for your new menu. Remember to enable the newly created block in the <a href="@blocks">blocks administration page</a>.', array(
        '@blocks' => url('admin/build/block'),
      )) . '</p>';
    case 'admin/build/menu/item/add':
      return '<p>' . t('Enter the title, path, position and the weight for your new menu item.') . '</p>';
  }
}