You are here

function matching_config_validate in Quiz 7

Same name and namespace in other branches
  1. 8.4 question_types/matching/matching.module \matching_config_validate()
  2. 6.4 question_types/matching/matching.module \matching_config_validate()
  3. 7.6 question_types/matching/matching.module \matching_config_validate()
  4. 7.4 question_types/matching/matching.module \matching_config_validate()
  5. 7.5 question_types/matching/matching.module \matching_config_validate()

Validate the matching config form values

1 string reference to 'matching_config_validate'
matching_config in question_types/matching/matching.module
hook_config

File

question_types/matching/matching.module, line 66
Matching question type for quiz module

Code

function matching_config_validate($form, $form_state) {
  if (!_quiz_is_int($form_state['values']['quiz_matching_form_size'], 2, 50)) {
    form_set_error('quiz_matching_form_size', t('The number of questions must be between 2 and 50'));
  }
}