You are here

function faq_get_terms in Frequently Asked Questions 6

Same name and namespace in other branches
  1. 5.2 faq.module \faq_get_terms()
  2. 5 faq.module \faq_get_terms()
  3. 7.2 faq.module \faq_get_terms()
  4. 7 faq.module \faq_get_terms()

Get a list of terms associated with the FAQ nodes.

Return value

Return the HTML-formatted content.

1 call to faq_get_terms()
faq_get_faq_list in ./faq.module
Format the output for the faq_site_map() function.

File

./faq.module, line 993
The FAQ module allows users to create a FAQ page, with questions and answers displayed in different styles, according to the settings.

Code

function faq_get_terms() {
  $items = array();
  $vocabularies = taxonomy_get_vocabularies('faq');
  $vocab_omit = array_flip(variable_get('faq_omit_vocabulary', array()));
  $vocabularies = array_diff_key($vocabularies, $vocab_omit);
  foreach ($vocabularies as $vid => $vobj) {
    $vocab_items = _get_indented_faq_terms($vid, 0);
    $items = array_merge($items, $vocab_items);
  }
  return theme('item_list', $items);
}