function advanced_forum_get_forum_list in Advanced Forum 6
Same name and namespace in other branches
- 5 advanced_forum.module \advanced_forum_get_forum_list()
Returns an array of taxonomy terms in the forum vocabulary.
File
- ./
advanced_forum.module, line 1751 - Enables the look and feel of other popular forum software.
Code
function advanced_forum_get_forum_list($tid = 0) {
$forums = array();
$vid = variable_get('forum_nav_vocabulary', '');
$forums = taxonomy_get_tree($vid, $tid);
return $forums;
}