function theme_quiz_question_feedback in Quiz 7.6
Same name and namespace in other branches
- 5.2 quiz.module \theme_quiz_question_feedback()
- 6.2 quiz.pages.inc \theme_quiz_question_feedback()
- 7.5 question_types/quiz_question/quiz_question.module \theme_quiz_question_feedback()
Theme the feedback for any question type.
1 theme call to theme_quiz_question_feedback()
- QuizQuestionResponse::getFeedback in question_types/
quiz_question/ quiz_question.core.inc - Returns a renderable array of question feedback.
File
- question_types/
quiz_question/ quiz_question.module, line 1034 - Quiz Question module. This module provides the basic facilities for adding quiz question types to a quiz.
Code
function theme_quiz_question_feedback($variables) {
$rows = $variables['data'];
$headers = array_intersect_key($variables['labels'], $rows[0]);
return theme('table', array(
'header' => $headers,
'rows' => $rows,
));
}