You are here

function long_answer_admin_settings_form in Quiz 6.5

Same name and namespace in other branches
  1. 6.6 question_types/long_answer/long_answer.admin.inc \long_answer_admin_settings_form()
  2. 6.3 question_types/long_answer/long_answer.admin.inc \long_answer_admin_settings_form()

Admin settings form.

File

question_types/long_answer/long_answer.admin.inc, line 11
Administration pages for the long answer questions module.

Code

function long_answer_admin_settings_form() {
  $form['long_answer_default_maximum_score'] = array(
    '#type' => 'textfield',
    '#title' => t('Default Maximum Score'),
    // 1 to match default multichoice score.
    '#default_value' => variable_get('long_answer_default_maximum_score', 1),
    '#description' => t('The default maximum score for a long-answer question.'),
    '#required' => TRUE,
  );
  return system_settings_form($form);
}