You are here

function _quiz_taxonomy_select in Quiz 7

Same name and namespace in other branches
  1. 5.2 quiz.module \_quiz_taxonomy_select()
  2. 5 quiz.module \_quiz_taxonomy_select()
  3. 6.6 quiz.module \_quiz_taxonomy_select()
  4. 6.2 quiz.module \_quiz_taxonomy_select()
  5. 6.3 quiz.module \_quiz_taxonomy_select()
  6. 6.4 quiz.module \_quiz_taxonomy_select()
  7. 6.5 quiz.module \_quiz_taxonomy_select()
  8. 7.6 quiz.module \_quiz_taxonomy_select()
  9. 7.4 quiz.module \_quiz_taxonomy_select()
  10. 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;
}