You are here

function long_answer_config_submit in Quiz 8.4

Submit the long_answer config form values

1 string reference to 'long_answer_config_submit'
long_answer_config in question_types/long_answer/long_answer.module
Implements hook_config().

File

question_types/long_answer/long_answer.module, line 89
This module defines a long answer question type for quizzes.

Code

function long_answer_config_submit($form, $form_state) {
  $config = \Drupal::config('long_answer.settings');
  $config
    ->set('long_answer_default_max_score', $form_state['values']['long_answer_default_max_score'])
    ->save();
}