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'))

1 Answer 1


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

  • 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, 2015 at 19:05

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.