Hi,

I am trying to create a secondary menu. I know that now in Drupal 7 , the $secondary_menu variable includes the output of the user menu by default. I want to create a third menu, which would include the real secondary links . How can I print its output of the third menu or should I add the third menu to a region and print its output ?

Thanks!
Best,
Khaled

Comments

nevets’s picture

Each menu has a corresponding block so you can display the menu by putting the associated block in the region of your choice.

sri20198’s picture

I know that there is $main_menu which is provided by default by the Drupal system.
How to check if a custom menu exists or there are any links under that custom menu? A similar variable name would be very convenient. Is there any?

Rgds,
Sridhar

nevets’s picture

No, normally one just enables the block for the menu and it will only show if there are items in the menu