summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-05-21 18:11:38 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-05-21 18:11:38 +0000
commit4ddd7588e1eea37693aa333e0faf958bf4288bf7 (patch)
treef1b878d2ccf1eb273e231b2a6095d67d0bcaaa69
parent4d6924dc006dfa83e8d945f28d5ad48abdc64694 (diff)
downloadbrdo-4ddd7588e1eea37693aa333e0faf958bf4288bf7.tar.gz
brdo-4ddd7588e1eea37693aa333e0faf958bf4288bf7.tar.bz2
#469386 by Bojhan: Remove obvious menu administration help, and make block-related help conditional on block module.
-rw-r--r--modules/menu/menu.module5
1 files changed, 3 insertions, 2 deletions
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 .= '<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 link, or to rearrange links 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 used to navigate a website. If the Block module is enabled, each menu has a corresponding block that is managed on the <a href="@blocks">blocks administration page</a>. Select an existing menu from this list to manage its menu links.', array('@blocks' => url('admin/build/block'))) . '</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/%':
@@ -31,6 +29,9 @@ function menu_help($path, $arg) {
case 'admin/build/menu/item/add':
return '<p>' . t('Enter the title and path for your new menu link.') . '</p>';
}
+ if ($path == 'admin/build/menu' && module_exists('block')) {
+ return '<p>' . t('Each menu has a corresponding block that is managed on the <a href="@blocks">blocks administration page</a>.', array('@blocks' => url('admin/build/block'))) . '</p>';
+ }
}
/**