You are here

function menu_tree_prune_active_tree in Menu Block 6.2

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

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

Parameters

$tree: array The menu tree to prune.

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

Return value

void

1 call to menu_tree_prune_active_tree()
menu_tree_build in ./menu_block.module
Build a menu tree based on the provided configuration.

File

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

Code

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