You are here

public function QuizQuestionResponse::getReportFormQuestion in OG Quiz 7

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 includes/og_quiz_question.php
Creates the report form for the admin pages, and for when a user gets feedback after answering questions.

File

includes/og_quiz_question.php, line 1054
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);
  $items = field_get_items('node', $node, 'body');
  return field_view_value('node', $node, 'body', $items[0]);
}