You are here

function _quiz_taxonomy_select in Quiz 5

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

File

./quiz.module, line 1018
Quiz Module

Code

function _quiz_taxonomy_select($value = 0) {
  $form = array();
  foreach (_quiz_get_vocabularies() as $vid => $vocabulary) {
    $form['taxonomy'][$vid] = taxonomy_form($vid, $value);
  }
  return $form;
}