By drupalninja99 on
I am trying to work on the little known directory module and I want to take a tree object that comes from $tree = taxonomy_get_tree($vid); and turn it into a menu uls and sub-ul's like drupal does with it's menu system. I feel like that gives me the most flexibility from a layout perspective. So I would have ul, li, li, li then if theres a submenu I'd have a ul inside one of the li. Anyways it's probably like one function call or something. Thanks
Jay
Comments
theme_menu_tree()
It is one call... theme_menu_tree($pid)
http://api.drupal.org/api/4.7/function/theme_menu_tree
Good luck !
ya that doesnt really work
I think that's if it's in the menu db table. Mine is coming from some place else. I have the tree data structure, not an id so I don't think that works.
Jay