2

Hitting my head against the wall here. I've volunteered to print a list of the current menu items (at the same level as the currently viewed menu)

print theme('links', $secondary_links, array('class' => 'links', 'id' => 'subnav'));

Does anyone know how I would print out a list of the menu items at the currently selected level rather than just the top level primary links?

Update: Also just prints the children of the primary link parent.

      print theme('links', $primary_links, array('class' => 'links'))
0

print theme("links", array('links'=>$secondary_links), array('class' => 'links', 'id' => 'subnav'));

| improve this answer | |
  • No luck with this, using the secondary links variable sounds right but it prints the exact same as the other line i've added (see update) – Enviro Jun 15 '15 at 19:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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