You are here

function matching_config_validate in Quiz 7.5

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 question_types/matching/matching.module \matching_config_validate()
  5. 7.4 question_types/matching/matching.module \matching_config_validate()

Validate the long_answer config form values.

1 string reference to 'matching_config_validate'
matching_quiz_question_config in question_types/matching/matching.module
Implements hook_quiz_question_config().

File

question_types/matching/matching.module, line 67
Matching question type for the 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'));
  }
}