0

I'd like to get the title of the menu.

if I do:

menu_navigation_links('menu-name');

I get only the links without the title, which is good but I still need the title.

Any ideas ?

Cheers

2
  • Didn't know that menus have a title field ... Is your menu part of a block ? Blocks can have titles. Commented Oct 23, 2013 at 7:53
  • well when you create a menu you give him a title, that was I was looking for
    – GwenM
    Commented Oct 23, 2013 at 22:15

1 Answer 1

2
menu_load('menu-name');

Returns title, description and menu_name for this menu.
https://api.drupal.org/api/drupal/modules!menu!menu.module/function/menu_load/7

1
  • That was it! Cheers michamilz
    – GwenM
    Commented Oct 23, 2013 at 22:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.