Menu code for drupal 7


/* Menu code for drupal 7 */
<?php
$main_menu_tree = menu_tree(‘main-menu’);
foreach ($main_menu_tree as $key => &$main_menu_item) {
if (is_numeric($key)) {
$main_menu_item[‘#below’][‘#theme_wrappers’][0] = ‘some_other_theme_wrapper’;
}
}
print drupal_render($main_menu_tree);
?>

Advertisement

One thought on “Menu code for drupal 7

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s