You are here

public function MatchingQuestion::getAdminForm in Quiz 6.6

Same name and namespace in other branches
  1. 6.3 question_types/matching/matching.classes.inc \MatchingQuestion::getAdminForm()
  2. 6.5 question_types/matching/matching.classes.inc \MatchingQuestion::getAdminForm()

Get the form that contains admin settings for this question type.

Return value

Must return a FAPI array.

Overrides QuizQuestion::getAdminForm

File

question_types/matching/matching.classes.inc, line 131
matching.classes

Class

MatchingQuestion
Implementation of Matching.

Code

public function getAdminForm($edit = NULL) {
  $form['matching'] = array(
    '#type' => 'fieldset',
    '#title' => t('Matching Settings'),
    '#description' => t('Matching Questions Settings and Configuration'),
    '#collapsible' => TRUE,
    '#collapsed' => FALSE,
  );
  $form['matching']['quiz_matching_form_size'] = array(
    '#type' => 'textfield',
    '#title' => t('Match Question Size'),
    '#description' => t('Number of question allowed to wrap under a match type question.'),
    '#default_value' => variable_get('quiz_matching_form_size', 5),
  );
  $form['matching']['quiz_matching_shuffle_options'] = array(
    '#type' => 'checkbox',
    '#title' => t('Shuffle Matching Options'),
    '#default_value' => variable_get('quiz_matching_shuffle_options', TRUE),
    '#description' => t('If checked matching options will be shuffled'),
  );
  return system_settings_form($form);
}