You are here

function theme_quiz_question_feedback in Quiz 5.2

Same name and namespace in other branches
  1. 6.2 quiz.pages.inc \theme_quiz_question_feedback()
  2. 7.6 question_types/quiz_question/quiz_question.module \theme_quiz_question_feedback()
  3. 7.5 question_types/quiz_question/quiz_question.module \theme_quiz_question_feedback()

Theme feedback for one question.

Parameters

$quiz: Quiz node (may not be needed).

$question_node: The question node giving feedback for.

$answer: User's response to previous question.

Return value

Themed html.

1 theme call to theme_quiz_question_feedback()
quiz_get_feedback in ./quiz.module
Get feedback for one question.

File

./quiz.module, line 2460

Code

function theme_quiz_question_feedback($quiz, $report) {
  $output = '<div class="quiz-summary-question">';
  $output .= theme($report->type . '_feedback', $quiz, $report);
  $output .= '</div><br class="clear" />';
  return $output;
}