Last active
August 29, 2015 14:14
-
-
Save chrisdkemper/4746c2d36ffa42f18f47 to your computer and use it in GitHub Desktop.
Load the 'Main menu' created by Drupal 7 in the code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Load the the Main menu | |
*/ | |
$main_menu = module_invoke('system', 'block_view', 'main-menu'); | |
echo render($main_menu['content']); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment