Drupal - get $primary_links with nested menus as php array

Uncorsenops

New Member
I'm trying to get a PHP array that includes a simple nested list of primary_links and their sub-menu items. This seems like a simple task but I can't seem to get a straight answer on how exactly to do it.From there I would theme it exactly as needed.Thanks!
 
Back
Top