You are here

function theme_quiz_answer_result in Quiz 7.6

Same name and namespace in other branches
  1. 7.5 quiz.theme.inc \theme_quiz_answer_result()

Pass the correct mark to the theme so that theme authors can use an image.

2 theme calls to theme_quiz_answer_result()
MatchingResponse::getFeedbackValues in question_types/matching/matching.classes.inc
Implementation of getReportFormResponse
quiz_icon in question_types/quiz_question/quiz_question.module
Helper function to faciliate icon display, like "correct" or "selected".

File

./quiz.pages.inc, line 261
User pages.

Code

function theme_quiz_answer_result($variables) {
  $type = $variables['type'];
  return '<div class="quiz-score-icon ' . $type . '"></div>';
}