public function LongAnswerQuestion::getCreationForm in Quiz 6.4
Same name and namespace in other branches
- 6.6 question_types/long_answer/long_answer.classes.inc \LongAnswerQuestion::getCreationForm()
- 6.3 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()
Implementation of getCreationForm
Overrides QuizQuestion::getCreationForm
See also
QuizQuestion#getCreationForm($form_state)
File
- question_types/
long_answer/ long_answer.classes.inc, line 140 - Long answer classes.
Class
- LongAnswerQuestion
- Extension of QuizQuestion.
Code
public function getCreationForm(array $form_state = NULL) {
$form['rubric'] = array(
'#type' => 'textarea',
'#title' => t('Rubric'),
'#description' => t('Specify the criteria for grading the response.'),
'#default_value' => isset($this->node->rubric) ? $this->node->rubric : '',
'#size' => 60,
'#maxlength' => 512,
'#required' => FALSE,
);
return $form;
}