You are here

public function QuizQuestionResponse::getReportFormQuestion in Quiz 7

Same name and namespace in other branches
  1. 6.4 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 847
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) {
  $field = field_get_items('node', node_load($this->question->nid), 'body');
  return array(
    '#markup' => $field[0]['safe_value'],
  );
}