function long_answer_quiz_question_config in Quiz 8.5
Same name and namespace in other branches
- 8.6 question_types/quiz_long_answer/quiz_long_answer.module \long_answer_quiz_question_config()
- 7.6 question_types/long_answer/long_answer.module \long_answer_quiz_question_config()
- 7.5 question_types/long_answer/long_answer.module \long_answer_quiz_question_config()
Implements hook_quiz_question_config().
File
- question_types/
quiz_long_answer/ quiz_long_answer.module, line 29 - Long_answer question type for the Quiz module.
Code
function long_answer_quiz_question_config() {
$form['long_answer_default_max_score'] = array(
'#type' => 'textfield',
'#title' => t('Default max score'),
'#description' => t('Choose the default maximum score for a long answer question.'),
'#default_value' => variable_get('long_answer_default_max_score', 10),
);
$form['#validate'][] = 'long_answer_config_validate';
return $form;
}