From 4ddd7588e1eea37693aa333e0faf958bf4288bf7 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Thu, 21 May 2009 18:11:38 +0000 Subject: #469386 by Bojhan: Remove obvious menu administration help, and make block-related help conditional on block module. --- modules/menu/menu.module | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/menu/menu.module b/modules/menu/menu.module index fc0faa22d..a693021ae 100644 --- a/modules/menu/menu.module +++ b/modules/menu/menu.module @@ -22,8 +22,6 @@ function menu_help($path, $arg) { $output .= '

' . t('The menus page displays all menus currently available on your site. Select a menu from this list to add or edit a menu link, or to rearrange links within the menu. Create new menus using the add menu page (the block containing a new menu must also be enabled on the blocks administration page).', array('@menu' => url('admin/build/menu'), '@add-menu' => url('admin/build/menu/add'), '@blocks' => url('admin/build/block'))) . '

'; $output .= '

' . t('For more information, see the online handbook entry for Menu module.', array('@menu' => 'http://drupal.org/handbook/modules/menu/')) . '

'; return $output; - case 'admin/build/menu': - return '

' . t('Menus are a collection of links used to navigate a website. If the Block module is enabled, each menu has a corresponding block that is managed on the blocks administration page. Select an existing menu from this list to manage its menu links.', array('@blocks' => url('admin/build/block'))) . '

'; case 'admin/build/menu/add': return '

' . t('Enter the name for your new menu. Remember to enable the newly created block in the blocks administration page.', array('@blocks' => url('admin/build/block'))) . '

'; case 'admin/build/menu-customize/%': @@ -31,6 +29,9 @@ function menu_help($path, $arg) { case 'admin/build/menu/item/add': return '

' . t('Enter the title and path for your new menu link.') . '

'; } + if ($path == 'admin/build/menu' && module_exists('block')) { + return '

' . t('Each menu has a corresponding block that is managed on the blocks administration page.', array('@blocks' => url('admin/build/block'))) . '

'; + } } /** -- cgit v1.2.3