function _multichoice_skip_validation in Quiz 7
Same name and namespace in other branches
- 8.4 question_types/multichoice/multichoice.module \_multichoice_skip_validation()
- 6.4 question_types/multichoice/multichoice.module \_multichoice_skip_validation()
- 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 164 - 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]);
}
}