You are here

function _multichoice_skip_validation in Quiz 6.4

Same name and namespace in other branches
  1. 8.4 question_types/multichoice/multichoice.module \_multichoice_skip_validation()
  2. 7 question_types/multichoice/multichoice.module \_multichoice_skip_validation()
  3. 7.4 question_types/multichoice/multichoice.module \_multichoice_skip_validation()

Recursive helper function to set the validated property. (Taken from the skip validation module.)

Parameters

&$elements: The elements that are currently being processed.

1 call to _multichoice_skip_validation()
multichoice_add_alternative_ahah in question_types/multichoice/multichoice.module
ahah callback function used when adding alternatives to the node-form

File

question_types/multichoice/multichoice.module, line 238
The main file for multichoice.

Code

function _multichoice_skip_validation(&$elements) {
  $elements['#validated'] = TRUE;
  foreach (element_children($elements) as $key) {
    _multichoice_skip_validation($elements[$key]);
  }
}