You are here

function scale_config in Quiz 7

Same name and namespace in other branches
  1. 8.4 question_types/scale/scale.module \scale_config()
  2. 6.4 question_types/scale/scale.module \scale_config()
  3. 7.4 question_types/scale/scale.module \scale_config()

Implements hook_config().

File

question_types/scale/scale.module, line 99
The main file for scale.

Code

function scale_config() {
  $form['manage'] = array(
    '#markup' => 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),
  );
  $form['#validate'] = 'scale_config_validate';
  return $form;
}