function menu_help in Drupal 6
Same name and namespace in other branches
- 4 modules/menu.module \menu_help()
- 5 modules/menu/menu.module \menu_help()
- 7 modules/menu/menu.module \menu_help()
Implementation of hook_help().
File
- modules/
menu/ menu.module, line 17 - Allows administrators to customize the site navigation menu.
Code
function menu_help($path, $arg) {
switch ($path) {
case 'admin/help#menu':
$output = '<p>' . t("The menu module provides an interface to control and customize Drupal's powerful menu system. Menus are a hierarchical collection of links, or menu items, used to navigate a website, and are positioned and displayed using Drupal's flexible block system. By default, three menus are created during installation: <em>Navigation</em>, <em>Primary links</em>, and <em>Secondary links</em>. The <em>Navigation</em> menu contains most links necessary for working with and navigating your site, and is often displayed in either the left or right sidebar. Most Drupal themes also provide support for <em>Primary links</em> and <em>Secondary links</em>, by displaying them in either the header or footer of each page. By default, <em>Primary links</em> and <em>Secondary links</em> contain no menu items but may be configured to contain custom menu items specific to your site.") . '</p>';
$output .= '<p>' . t('The <a href="@menu">menus page</a> displays all menus currently available on your site. Select a menu from this list to add or edit a menu item, or to rearrange items within the menu. Create new menus using the <a href="@add-menu">add menu page</a> (the block containing a new menu must also be enabled on the <a href="@blocks">blocks administration page</a>).', array(
'@menu' => url('admin/build/menu'),
'@add-menu' => url('admin/build/menu/add'),
'@blocks' => url('admin/build/block'),
)) . '</p>';
$output .= '<p>' . t('For more information, see the online handbook entry for <a href="@menu">Menu module</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 menus currently available on your site are displayed below. Select a menu from this list to manage its menu items.') . '</p>';
case 'admin/build/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-customize/%':
return '<p>' . t('To rearrange menu items, grab a drag-and-drop handle under the <em>Menu item</em> column and drag the items (or group of items) to a new location in the list. (Grab a handle by clicking and holding the mouse while hovering over a handle icon.) Remember that your changes will not be saved until you click the <em>Save configuration</em> button at the bottom of the page.') . '</p>';
case 'admin/build/menu/item/add':
return '<p>' . t('Enter the title and path for your new menu item.') . '</p>';
}
}