You are here

function quickbar_menu_tree in Quickbar 7.2

Same name and namespace in other branches
  1. 6 quickbar.module \quickbar_menu_tree()
  2. 7 quickbar.module \quickbar_menu_tree()

Retrieve a hierarchy of links representing select portions of the menu.

1 call to quickbar_menu_tree()
quickbar_page_build in ./quickbar.module
Implements hook_page_build()

File

./quickbar.module, line 294

Code

function quickbar_menu_tree($settings) {
  $links = array();

  // Retrieve the menu from the database.
  $tree = quickbar_get_menu_tree($settings['menu']);

  // Convert the tree to menu links
  quickbar_menu_tree_links($tree, $links);

  // Add any expanded item links
  _quickbar_expanded_item_links($links, $settings);

  // Allow the menu links to be altered
  drupal_alter('quickbar_menu_links', $links);
  return $links;
}