Get Navigation Menu as an Array or Object
I know I can use fuel_nav to get the html of my menu. Is there a function that returns my navigation menu as a nested array or object of some sort? My navigation is multilevel, something like this:
level0_item_a
level1_item_a
level1_item_b
level0_item_b
level1_item_c
level2_item_a
level2_item_b
level1_item_d
level1_item_e
level0_item_c
level0_item_d
Is there a function to return that tree structure? Or even better, is there a way to get an array/object of just a subtree (for example, just 'level1_item_c' and all it's children)?
Comments
echo fuel_nav(array('render_type' => 'array'));