You are here

public function ScaleQuestion::getAdminForm in Quiz 6.6

Implementation of getAdminForm

(non-PHPdoc)

Overrides QuizQuestion::getAdminForm

See also

sites/all/modules/quiz-HEAD/question_types/quiz_question/QuizQuestion#getAdminForm()

File

question_types/scale/scale.classes.inc, line 316
The main classes for the scale question type.

Class

ScaleQuestion
Implementation of QuizQuestion.

Code

public function getAdminForm($edit = NULL) {
  $form['manage'] = array(
    '#type' => 'markup',
    '#value' => l(t('Manage presets'), 'scale/collection/manage'),
  );
  $form['scale_max_num_of_alts'] = array(
    '#type' => 'textfield',
    '#title' => t('Maximum number of alternatives allowed'),
    '#default_value' => variable_get('scale_max_num_of_alts', 10),
  );
  return system_settings_form($form);
}