You are here

public function LongAnswerQuestion::getCreationForm in OG Quiz 7

Implementation of getCreationForm

Overrides QuizQuestion::getCreationForm

See also

QuizQuestion#getCreationForm($form_state)

File

includes/og_long_answer.php, line 150
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;
}