You are here

public function QuizQuestionResponse::getReportFormQuestion in Quiz 7.4

Same name and namespace in other branches
  1. 6.4 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::getReportFormQuestion()
  2. 7 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.
1 method overrides QuizQuestionResponse::getReportFormQuestion()
QuizQuestionH5PResponse::getReportFormQuestion in question_types/quiz_h5p/QuizQuestionH5PResponse.class.inc
Implementation of getReportFormQuestion

File

question_types/quiz_question/quiz_question.core.inc, line 891
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) {
  $node = node_load($this->question->nid);
  $node->no_answer_form = TRUE;
  node_build_content($node, 'question');
  return $node->content;
}