You are here

function menu_tree_sort_active_path in Menu Block 7.3

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

Sort the active trail to the top of the tree.

Parameters

array $tree: array The menu tree to sort.

1 call to menu_tree_sort_active_path()
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 667
Provides configurable blocks of menu items.

Code

function menu_tree_sort_active_path(array &$tree) {
  module_load_include('inc', 'menu_block', 'menu_block.sort');
  _menu_tree_sort_active_path($tree);
}