function _quiz_get_vocabularies in Quiz 7
Same name and namespace in other branches
- 5.2 quiz.module \_quiz_get_vocabularies()
- 5 quiz.module \_quiz_get_vocabularies()
- 6.6 quiz.module \_quiz_get_vocabularies()
- 6.2 quiz.module \_quiz_get_vocabularies()
- 6.3 quiz.module \_quiz_get_vocabularies()
- 6.4 quiz.module \_quiz_get_vocabularies()
- 6.5 quiz.module \_quiz_get_vocabularies()
- 7.6 quiz.module \_quiz_get_vocabularies()
- 7.4 quiz.module \_quiz_get_vocabularies()
- 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 3387 - 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;
}