function theme_truefalse_report in Quiz 6.6
Implementation of theme_$type_report(). Theme the feedback report for a quiz. This report is generated (typically) at the end of the quiz.
File
- question_types/
truefalse/ truefalse.theme.inc, line 14 - Themes for the truefalse module.
Code
function theme_truefalse_report($question, $show_points, $show_feedback) {
drupal_set_message('called');
if (!isset($question->answers[0])) {
drupal_set_message('No result could be calculated.', 'status');
return;
}
$answer = $question->answers[0];
$types = _quiz_get_question_types();
$constructor = $types[$question->type]['response provider'];
$result = new $constructor($answer['result_id'], $question);
return $result
->formatReport();
}