I have a menu section in my theme where i display the main-menu
menu. This works as expected. with the following code.
<?php print theme('links', array(
'links' => menu_navigation_links('main-menu'),
'attributes' => array('class'=> array('navbar', 'navbar-collapse', 'collapse'))
));?>
I would like to make a block region inside of this rendered menu section for the search box. The end results will be block region at the end of the menu that i can style to be to the right of the menu. I could do this in css but was hoping to make the rendered html a little cleaner. This is what I have tried.
<?php print theme('links', array(
'links' => menu_navigation_links('main-menu'),
'attributes' => array('class'=> array('navbar', 'navbar-collapse', 'collapse')) ,
'region' => render($page['search']);
));?>
There looks to be no tutorials on adding a block region to the menu array. Is is possible to inject a block region into the menu render array?