You are here

function menu_tree_sort_active_path in Menu Block 6.2

Same name and namespace in other branches
  1. 7.3 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

$tree: array The menu tree to sort.

Return value

void

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

File

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

Code

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