Skip to content

Instantly share code, notes, and snippets.

@penghou620
Last active December 22, 2015 13:49
Show Gist options
  • Save penghou620/6481442 to your computer and use it in GitHub Desktop.
Save penghou620/6481442 to your computer and use it in GitHub Desktop.
Example code of using theme_nice_menus() function
$menu = theme('nice_menus',array(
'id'=>'main-menu',
'direction'=>'down',
'depth'=>-1,
'menu_name'=>'main-menu',
'menu'=>NULL,
));
print $menu['content'];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment