I’ve spend all morning trying to get this to work.  I am using nice menus and the frontpage modules in Drupal for a project at work and I could not for the life of me get the nice menu to work on the newly created frontpage I set up using “full” type of front page.

After hours of banging my head on the desk I’ve figured it out.

    <?php
$block = module_invoke(’nice_menus’, ‘block’, ‘view’, 1);
print $block['content'];
?>

Yes that is it.  This will print out the contents of the nice menus block.  Ugh.


Leave a Comment


To insert code, wrap in <code></code> tags.




John Yerhot is Digg proof thanks to caching by WP Super Cache!