You are here

function _quiz_get_vocabularies in Quiz 6.4

Same name and namespace in other branches
  1. 5.2 quiz.module \_quiz_get_vocabularies()
  2. 5 quiz.module \_quiz_get_vocabularies()
  3. 6.6 quiz.module \_quiz_get_vocabularies()
  4. 6.2 quiz.module \_quiz_get_vocabularies()
  5. 6.3 quiz.module \_quiz_get_vocabularies()
  6. 6.5 quiz.module \_quiz_get_vocabularies()
  7. 7.6 quiz.module \_quiz_get_vocabularies()
  8. 7 quiz.module \_quiz_get_vocabularies()
  9. 7.4 quiz.module \_quiz_get_vocabularies()
  10. 7.5 quiz.module \_quiz_get_vocabularies()

Retrieve list of vocabularies for all quiz question types.

Return value

An array containing a vocabulary list.

2 calls to _quiz_get_vocabularies()
_quiz_search_terms in ./quiz.admin.inc
Helper function for finding terms...
_quiz_taxonomy_select in ./quiz.module
Prints a taxonomy selection form for each vocabulary.

File

./quiz.module, line 3298
Quiz Module

Code

function _quiz_get_vocabularies() {
  $vocabularies = array();
  $types = array_keys(_quiz_get_question_types());
  foreach ($types as $type) {
    foreach (taxonomy_get_vocabularies($type) as $vid => $vocabulary) {
      $vocabularies[$vid] = $vocabulary;
    }
  }
  return $vocabularies;
}