I'm building a site with 2 menu's. One is the main menu, the other one is similar to the user menu.
The user menu is only displayed in a panel on the frontpage, the main menu is always visible. To keep the user-menu options available I'd like to add them to the main menu as well so they are always accessible too.
I thought of appending the user-menu to the main-menu in my custom template.php like below, but that gave me just the main-menu.
function THEME_preprocess_page(&$variables) {
$variables['main_menu'] = array_merge(menu_main_menu(), menu_navigation_links('menu-myoptions'));
}
I was using the main-menu-block, so I thought that could be the reason the altered menu is not showing up. (The block might load the menu directly).
But when I user render($main_menu)
in my page.tpl.php it doesn't work eighter.
Am I missing something?