public function MatchingQuestion::getAdminForm in Quiz 6.5
Same name and namespace in other branches
- 6.6 question_types/matching/matching.classes.inc \MatchingQuestion::getAdminForm()
- 6.3 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 128 - quiz_directions.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' => TRUE,
);
$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' => 5,
);
return $form;
}