menu_helper_reset_tree

custom/menu_helper/menu_helper_reset/menu_helper_reset.module, line 85

Versions
6
menu_helper_reset_tree($menu_name)

Render a menu tree based on the current path with menu item reset to selected reset depths.

Function is almost identical to menu_tree but the tree is built using menu_helper_reset_tree_page_data().

▾ 1 function calls menu_helper_reset_tree()

menu_helper_tree_output in custom/menu_helper/menu_helper.module
Looks for any menu item with a reset depth, re-positions it, and then renders the menu tree.

Code

<?php
function menu_helper_reset_tree($menu_name) {
  static $menu_output = array();

  if (!isset($menu_output[$menu_name])) {
    $tree = menu_helper_reset_tree_page_data($menu_name);
    $menu_output[$menu_name] = menu_tree_output($tree);
  }
  return $menu_output[$menu_name];
}
?>