summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-08-28 13:16:36 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-08-28 13:16:36 +0000
commit89aef5b74f6eff31f80427e246a7a81fe52feb42 (patch)
treec17b59035507d9c1822c765b41a0d0100f6b347b
parent137270097792a030114e0e92765fda9b3329ac1d (diff)
downloadbrdo-89aef5b74f6eff31f80427e246a7a81fe52feb42.tar.gz
brdo-89aef5b74f6eff31f80427e246a7a81fe52feb42.tar.bz2
#171019 by pwolanin: do not exclude the primary and secondary links from the menu block list
-rw-r--r--modules/menu/menu.module8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/menu/menu.module b/modules/menu/menu.module
index f312d98aa..956e772b8 100644
--- a/modules/menu/menu.module
+++ b/modules/menu/menu.module
@@ -665,10 +665,12 @@ function menu_reset_item($item) {
* Implementation of hook_block().
*/
function menu_block($op = 'list', $delta = 0) {
- $custom_menus = menu_get_menus(FALSE);
+ $menus = menu_get_menus();
+ // The Navigation menu is handled by the user module.
+ unset($menus['navigation']);
if ($op == 'list') {
$blocks = array();
- foreach ($custom_menus as $name => $title) {
+ foreach ($menus as $name => $title) {
// Default "Navigation" block is handled by user.module.
$blocks[$name]['info'] = check_plain($title);
// Menu blocks can't be cached because each menu item can have
@@ -678,7 +680,7 @@ function menu_block($op = 'list', $delta = 0) {
return $blocks;
}
else if ($op == 'view') {
- $data['subject'] = check_plain($custom_menus[$delta]);
+ $data['subject'] = check_plain($menus[$delta]);
$data['content'] = menu_tree($delta);
return $data;
}