php - Want to render superfish_menu_tree in main_menu_tree place dupal -


sir, have main menu rendered in page.tpl.php

<div class="menu_wrapper">   <nav id="main-menu"  role="navigation">     <a class="nav-toggle" href="#">navigation</a>     <div class="menu-navigation-container">       <?php print drupal_render($main_menu_tree); ?>     <div class="clear"></div>   </nav> 

in here rendered main_menu_tree, want replace page superfish menu.

use block_load follows, replace

<?php print drupal_render($main_menu_tree); ?> 

with

<?php  $block = block_load('superfish', 1); $output = render(_block_get_renderable_array(_block_render_blocks(array($block)))); print $output; ?> 

Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -