Open
Description
The following code lives in kalatheme_process_page(). It is rendering the core 'main-menu' menu which is then printed in page.tpl as the main links. This is incorrect. What should be happening is this:
- get site variable for main links source as set in config.
- pass THAT menu name to menu_tree_all_data()
- ???
- Profit
// Get the entire main menu tree.
$main_menu_tree = array();
$main_menu_tree = menu_tree_all_data('main-menu', NULL, 2);
// Add the rendered output to the $main_menu_expanded variable.
$variables['main_menu_expanded'] = menu_tree_output($main_menu_tree);