commit dadf5c0877b382030d13f46b15d9980e97d41373 (HEAD, master) Author: Tim Plunkett Date: Wed Apr 4 14:38:32 2012 -0400 Issue #1327472 by pjcdawkins, tim.plunkett: Show submenus of frontpage. diff --git a/menu_block.module b/menu_block.module index 951db07..5af0b7c 100644 --- a/menu_block.module +++ b/menu_block.module @@ -482,12 +482,14 @@ function menu_tree_prune_tree(&$tree, $level, $parent_item = FALSE) { } } + $is_front_page = drupal_is_front_page(); // Trim the upper levels down to the one desired. for ($i = 1; $i < $level; $i++) { $found_active_trail = FALSE; // Examine each element at this level for the active trail. foreach ($tree AS $key => &$value) { - if ($tree[$key]['link']['in_active_trail']) { + // Also include the children of the front page. + if ($tree[$key]['link']['in_active_trail'] || ($tree[$key]['link']['link_path'] == '' && $is_front_page)) { // Get the title for the pruned tree. menu_block_set_title($tree[$key]['link']); // Prune the tree to the children of the item in the active trail.