function theme_matching_match_node_view in Quiz 8.6
Same name and namespace in other branches
- 8.4 question_types/matching/matching.theme.inc \theme_matching_match_node_view()
- 8.5 question_types/quiz_matching/theme/matching.theme.inc \theme_matching_match_node_view()
- 6.4 question_types/matching/theme/matching.theme.inc \theme_matching_match_node_view()
- 7.6 question_types/matching/theme/matching.theme.inc \theme_matching_match_node_view()
- 7 question_types/matching/theme/matching.theme.inc \theme_matching_match_node_view()
- 7.4 question_types/matching/theme/matching.theme.inc \theme_matching_match_node_view()
- 7.5 question_types/matching/theme/matching.theme.inc \theme_matching_match_node_view()
Theme the answer part of the node view.
Parameters
$variables:
Return value
string An HTML string.
File
- question_types/
quiz_matching/ theme/ matching.theme.inc, line 64 - Theme functions for the matching question type.
Code
function theme_matching_match_node_view($variables) {
$subquestions = $variables['subquestions'];
// We know the correct answer for each subquestion.
if (isset($subquestions[0]['correct'])) {
$header = array(
t('Subquestion'),
t('Correct match'),
t('Feedback'),
);
}
else {
$header = array(
t('Subquestion'),
t('Possible match'),
);
}
return theme('table', array(
'header' => $header,
'rows' => $subquestions,
));
}