function theme_matching_match_node_view in Quiz 6.4
Same name and namespace in other branches
- 8.6 question_types/quiz_matching/theme/matching.theme.inc \theme_matching_match_node_view()
- 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()
- 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
$subquestions: Array with all the data in the subquestions.
1 theme call to theme_matching_match_node_view()
- MatchingQuestion::getNodeView in question_types/
matching/ matching.classes.inc - Implementation of getNodeView
File
- question_types/
matching/ theme/ matching.theme.inc, line 55 - Themes for the matching module.
Code
function theme_matching_match_node_view($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', $header, $subquestions);
}