function short_answer_config in Quiz 7.4
Same name and namespace in other branches
- 8.4 question_types/short_answer/short_answer.module \short_answer_config()
- 6.4 question_types/short_answer/short_answer.module \short_answer_config()
- 7 question_types/short_answer/short_answer.module \short_answer_config()
Implements hook_config().
File
- question_types/
short_answer/ short_answer.module, line 80 - The main file for short_answer.
Code
function short_answer_config() {
$form['short_answer_default_max_score'] = array(
'#type' => 'textfield',
'#title' => t('Default max score'),
'#description' => t('Choose the default maximum score for a short answer question.'),
'#default_value' => variable_get('short_answer_default_max_score', 5),
);
$form['#validate'][] = 'short_answer_config_validate';
return $form;
}