You are here

public function LongAnswerQuestion::getCreationForm in Quiz 7.6

Same name and namespace in other branches
  1. 6.6 question_types/long_answer/long_answer.classes.inc \LongAnswerQuestion::getCreationForm()
  2. 6.3 question_types/long_answer/long_answer.classes.inc \LongAnswerQuestion::getCreationForm()
  3. 6.4 question_types/long_answer/long_answer.classes.inc \LongAnswerQuestion::getCreationForm()
  4. 6.5 question_types/long_answer/long_answer.classes.inc \LongAnswerQuestion::getCreationForm()
  5. 7 question_types/long_answer/long_answer.classes.inc \LongAnswerQuestion::getCreationForm()
  6. 7.4 question_types/long_answer/long_answer.classes.inc \LongAnswerQuestion::getCreationForm()
  7. 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 160
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' => 2048,
    '#required' => FALSE,
  );
  return $form;
}