public function LongAnswerQuestion::getCreationForm in Quiz 6.6
Same name and namespace in other branches
- 6.3 question_types/long_answer/long_answer.classes.inc \LongAnswerQuestion::getCreationForm()
- 6.4 question_types/long_answer/long_answer.classes.inc \LongAnswerQuestion::getCreationForm()
- 6.5 question_types/long_answer/long_answer.classes.inc \LongAnswerQuestion::getCreationForm()
- 7.6 question_types/long_answer/long_answer.classes.inc \LongAnswerQuestion::getCreationForm()
- 7 question_types/long_answer/long_answer.classes.inc \LongAnswerQuestion::getCreationForm()
- 7.4 question_types/long_answer/long_answer.classes.inc \LongAnswerQuestion::getCreationForm()
- 7.5 question_types/long_answer/long_answer.classes.inc \LongAnswerQuestion::getCreationForm()
Get the form used to create a new question.
Return value
Must return a FAPI array.
Overrides QuizQuestion::getCreationForm
File
- question_types/
long_answer/ long_answer.classes.inc, line 89 - Long answer classes.
Class
- LongAnswerQuestion
- Implementation of QuizQuestion.
Code
public function getCreationForm($edit) {
$form['maximum_score'] = array(
'#type' => 'textfield',
'#title' => t('Maximum Possible Score'),
'#description' => t('Long answer questions are scored manually. This field indicates to the person scoring what the maximum number of points per essay is. Multichoice questions have a score of 1.'),
'#default_value' => isset($this->node->maximum_score) ? $this->node->maximum_score : variable_get('long_answer_default_maximum_score', 1),
'#size' => 3,
'#maxlength' => 3,
'#required' => TRUE,
);
return $form;
}