function matching_config_validate in Quiz 8.4
Same name and namespace in other branches
- 6.4 question_types/matching/matching.module \matching_config_validate()
- 7.6 question_types/matching/matching.module \matching_config_validate()
- 7 question_types/matching/matching.module \matching_config_validate()
- 7.4 question_types/matching/matching.module \matching_config_validate()
- 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 69 - 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', $form_state, t('The number of questions must be between 2 and 50'));
}
}