function theme_short_answer_feedback in Quiz 6.3
Same name and namespace in other branches
- 6.6 question_types/short_answer/short_answer.theme.inc \theme_short_answer_feedback()
- 6.5 question_types/short_answer/short_answer.theme.inc \theme_short_answer_feedback()
Implementation of theme_$type_feedback(). This is basically useless for long answer questions.
File
- question_types/
short_answer/ short_answer.theme.inc, line 65 - Theme functions for short_answer.
Code
function theme_short_answer_feedback($quiz, $report) {
$output = '<div class="quiz_summary_text"><strong>' . t('Q:') . '</strong>' . check_markup($report->body, $report->format) . '<br /><em>';
if ($report->is_evaluated) {
$output .= 'Score: ' . $report->score;
}
else {
t('The answer to this question will be scored by hand.');
}
$output .= '</em></div>';
return $output;
}