I use to have the following snippet
<?php $block = module_invoke('superfish', 'block_view', '1'); print $block['content'];?> in page.tpl.php which worked great, now it just outputs Array. What do I need to change to get this to show?

Comments

mehrpadin’s picture

Hey there,

In D7 you can use the block_load.

$block = block_load('superfish', 1);
$output = render(_block_get_renderable_array(_block_render_blocks(array($block))));
print $output;
jodym’s picture

Status: Active » Closed (fixed)

Thanks, just what I was after..

omrmankar’s picture

Issue summary: View changes

Without Any Error Code This Code Very Useful for Render Superfish Menu

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