function faq_get_terms in Frequently Asked Questions 5
Same name and namespace in other branches
- 5.2 faq.module \faq_get_terms()
- 6 faq.module \faq_get_terms()
- 7.2 faq.module \faq_get_terms()
- 7 faq.module \faq_get_terms()
1 call to faq_get_terms()
File
- ./
faq.module, line 1779
Code
function faq_get_terms() {
$display_vars['faq_count'] = variable_get('faq_count', FALSE);
$display_vars['hide_sub_categories'] = variable_get('faq_hide_sub_categories', FALSE);
$items = array();
$vocabularies = taxonomy_get_vocabularies("faq");
foreach ($vocabularies as $vid => $vobj) {
$vocab_items = _get_indented_faq_terms($vid, 0, $display_vars);
$items = array_merge($items, $vocab_items);
}
return theme('item_list', $items);
}