You are here

function webmaster_menu_get_tree in Webmaster menu 7

Get a tree.

Parameters

string $menu_name: The name of the menu.

Return value

array A data structure suitable for theme_webmaster_menu_tree().

1 call to webmaster_menu_get_tree()
webmaster_menu_output in ./webmaster_menu.module
Create the webmaster menu.

File

./webmaster_menu.module, line 267
Display a dropdown menu at the top of the window.

Code

function webmaster_menu_get_tree($menu_name) {
  $tree = menu_tree_all_data($menu_name);

  // Allow i18n module to translate strings where available.
  if (module_exists('i18n_menu')) {
    $tree = i18n_menu_localize_tree($tree);
  }
  $menu_items = webmaster_menu_create_datastructure_from_tree($tree);
  return $menu_items;
}