You are here

function _multichoice_skip_validation in Quiz 8.4

Same name and namespace in other branches
  1. 6.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.

File

question_types/multichoice/multichoice.module, line 179
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]);
  }
}