You are here

function faq_get_terms in Frequently Asked Questions 5

Same name and namespace in other branches
  1. 5.2 faq.module \faq_get_terms()
  2. 6 faq.module \faq_get_terms()
  3. 7.2 faq.module \faq_get_terms()
  4. 7 faq.module \faq_get_terms()
1 call to faq_get_terms()
faq_get_faq_list in ./faq.module

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);
}