You are here

public function QuizQuestionResponse::getReportFormQuestion in Quiz 6.4

Same name and namespace in other branches
  1. 7 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::getReportFormQuestion()
  2. 7.4 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::getReportFormQuestion()

get the question part of the reportForm

Parameters

$showpoints:

$showfeedback:

Return value

FAPI form array holding the question

1 call to QuizQuestionResponse::getReportFormQuestion()
QuizQuestionResponse::getReportForm in question_types/quiz_question/quiz_question.core.inc
Creates the report form for the admin pages, and for when a user gets feedback after answering questions.

File

question_types/quiz_question/quiz_question.core.inc, line 861
Classes used in the Quiz Question module.

Class

QuizQuestionResponse
Each question type must store its own response data and be able to calculate a score for that data.

Code

public function getReportFormQuestion($showpoints = TRUE, $showfeedback = TRUE) {
  return array(
    '#type' => 'markup',
    '#value' => check_markup($this->question->body, $this->question->format, FALSE),
  );
}