You are here

function _quiz_skip_validation in Quiz 7

Same name and namespace in other branches
  1. 8.4 quiz.admin.inc \_quiz_skip_validation()
  2. 6.4 quiz.admin.inc \_quiz_skip_validation()
  3. 7.4 quiz.admin.inc \_quiz_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.

2 calls to _quiz_skip_validation()
quiz_browser_ahah in ./quiz.admin.inc
AHAH handler for the question browser
quiz_results_mr_browser_ahah in ./quiz.admin.inc
AHAH handler for the results browser

File

./quiz.admin.inc, line 2556
Administrator interface for Quiz module.

Code

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