You are here

public function LongAnswerResponse::getReportFormAnswerFeedback in OG Quiz 7

Overrides QuizQuestionResponse::getReportFormAnswerFeedback

File

includes/og_long_answer.php, line 405
Long answer classes.

Class

LongAnswerResponse
Extension of QuizQuestionResponse

Code

public function getReportFormAnswerFeedback($showpoints = TRUE, $showfeedback = TRUE, $allow_scoring = FALSE) {
  if ($this
    ->quizContextAccessToScore() && $allow_scoring) {
    return array(
      '#title' => t('Enter feedback'),
      '#type' => 'text_format',
      '#default_value' => isset($this->answer_feedback) ? check_markup($this->answer_feedback, $this->answer_feedback_format) : '',
      '#format' => isset($this->answer_feedback_format) ? $this->answer_feedback_format : NULL,
      '#attributes' => array(
        'class' => array(
          'quiz-report-score',
        ),
      ),
    );
  }
  return FALSE;
}