sammarks / ablecore

A library for Drupal developers.
MIT License
5 stars 4 forks source link

Add support for menu_secondary_menu() #34

Closed sammarks closed 9 years ago

sammarks commented 9 years ago

Turns out we've been doing the menu class wrong the whole time - Drupal already has support for secondary menu links!

sammarks commented 9 years ago

We actually already have something similar implemented. Just use Menu::current_section_mlid() to get the MLID of the current section, and then get the links that are underneath it.