You are here

public function QuizQuestionH5PResponse::getReportFormQuestion in Quiz 7.4

Implementation of getReportFormQuestion

Overrides QuizQuestionResponse::getReportFormQuestion

See also

QuizQuestionResponse#getReportFormQuestion($showpoints, $showfeedback, $allow_scoring)

File

question_types/quiz_h5p/QuizQuestionH5PResponse.class.inc, line 95

Class

QuizQuestionH5PResponse

Code

public function getReportFormQuestion($showpoints = TRUE, $showfeedback = TRUE, $allow_scoring = FALSE) {
  $title = db_query('SELECT title FROM {node} WHERE nid = :nid', array(
    ':nid' => $this->question->nid,
  ))
    ->fetchField();
  return array(
    '#markup' => check_plain($title),
  );
}