You are here

function i18nmenu_translated_tree in Internationalization 6

Get localized menu tree.

1 call to i18nmenu_translated_tree()
i18nblocks_preprocess_block in i18nblocks/i18nblocks.module
Implementation of hook_preprocess_block().

File

i18nmenu/i18nmenu.module, line 98
Internationalization (i18n) submodule: Menu translation.

Code

function i18nmenu_translated_tree($menu_name) {
  static $menu_output = array();
  if (!isset($menu_output[$menu_name])) {
    $tree = menu_tree_page_data($menu_name);
    i18nmenu_localize_tree($tree);
    $menu_output[$menu_name] = menu_tree_output($tree);
  }
  return $menu_output[$menu_name];
}