You are here

function menu_tree_prune_active_tree in Menu Block 7.2

Same name and namespace in other branches
  1. 6.2 menu_block.module \menu_tree_prune_active_tree()
  2. 7.3 menu_block.module \menu_tree_prune_active_tree()

Prune a tree so that it begins at the active menu item.

Parameters

array $tree: The menu tree to prune.

string $level: The level which the tree will be pruned to: 'active' or 'child'.

1 call to menu_tree_prune_active_tree()
menu_tree_block_data in ./menu_block.module
Gets the data structure representing a menu tree for the given configuration.

File

./menu_block.module, line 751
Provides configurable blocks of menu items.

Code

function menu_tree_prune_active_tree(array &$tree, $level) {
  module_load_include('inc', 'menu_block', 'menu_block.follow');
  _menu_tree_prune_active_tree($tree, $level);
}