function _quiz_taxonomy_select in Quiz 7
Same name and namespace in other branches
- 5.2 quiz.module \_quiz_taxonomy_select()
- 5 quiz.module \_quiz_taxonomy_select()
- 6.6 quiz.module \_quiz_taxonomy_select()
- 6.2 quiz.module \_quiz_taxonomy_select()
- 6.3 quiz.module \_quiz_taxonomy_select()
- 6.4 quiz.module \_quiz_taxonomy_select()
- 6.5 quiz.module \_quiz_taxonomy_select()
- 7.6 quiz.module \_quiz_taxonomy_select()
- 7.4 quiz.module \_quiz_taxonomy_select()
- 7.5 quiz.module \_quiz_taxonomy_select()
Prints a taxonomy selection form for each vocabulary.
Parameters
$value: Default selected value(s).
Return value
HTML output to print to screen.
1 call to _quiz_taxonomy_select()
- _quiz_add_fields_for_random_quiz in ./
quiz.admin.inc - Add fields for random quiz to the quiz_questions_form
File
- ./
quiz.module, line 3406 - Quiz Module
Code
function _quiz_taxonomy_select($value = 0) {
$options = array();
foreach (_quiz_get_vocabularies() as $vid => $vocabulary) {
$temp = taxonomy_form($vid, $value);
$options = array_merge($options, $temp['#options']);
}
return $options;
}