function matching_config_submit in Quiz 8.4
Submit the matching config form values
1 string reference to 'matching_config_submit'
- matching_config in question_types/
matching/ matching.module - hook_config
File
- question_types/
matching/ matching.module, line 78 - Matching question type for quiz module
Code
function matching_config_submit($form, $form_state) {
$config = \Drupal::config('matching.settings');
$config
->set('quiz_matching_form_size', $form_state['values']['quiz_matching_form_size'])
->set('quiz_matching_shuffle_options', $form_state['values']['quiz_matching_shuffle_options'])
->save();
}