You are here

function _quiz_get_vocabularies in Quiz 5

Same name and namespace in other branches
  1. 5.2 quiz.module \_quiz_get_vocabularies()
  2. 6.6 quiz.module \_quiz_get_vocabularies()
  3. 6.2 quiz.module \_quiz_get_vocabularies()
  4. 6.3 quiz.module \_quiz_get_vocabularies()
  5. 6.4 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 vocabulary list

1 call to _quiz_get_vocabularies()
_quiz_taxonomy_select in ./quiz.module
Prints a taxonomy selection form for each vocabulary

File

./quiz.module, line 1000
Quiz Module

Code

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