Sorry for asking such a question, but I'm still new in Drupal. I want to show sub menu via main menu.

- Top menu
1) Home
  a. Report
  b. Comment
2) Shopping
  a. Audi
  b. Honda

In this case, I would like to see 'a. Audi, b. Honda', or go back Home and see 'a. Report, b. Comment'. What should my module's hook_menu implementation look like ?

1 Answer 1


You can simply achieve that by using the Superfish module.

Superfish integrates jQuery Superfish plugin with your Drupal menus.

Image from Superfish module page

enter image description here

There is another module called Nice Menus

Nice Menus enables drop-down/right/left expandable menus. It uses only CSS for most browsers, with minimal Javascript for IE6. (Version 2 uses the Superfish jQuery plugin for all browsers, with an option to disable JS, and falls back to CSS-only for browsers that can handle it.)

  • I'm thinking that OP asked about hook_menu implementation, not for a solution with the Superfish (similar) module.
    – Kartagis
    Jul 24, 2014 at 7:28
  • @Kartagis Yes I know, but I think we can suggest an alternated for that(Previously some moderators did so). That's why I mentioned "you can simply achieve that" in my post and moreover OP didn't mention any code part here. Jul 24, 2014 at 7:34

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.