function theme_scale_answer_node_view in Quiz 7.4
Same name and namespace in other branches
- 8.6 question_types/quiz_scale/theme/scale.theme.inc \theme_scale_answer_node_view()
- 8.4 question_types/scale/scale.theme.inc \theme_scale_answer_node_view()
- 8.5 question_types/quiz_scale/theme/scale.theme.inc \theme_scale_answer_node_view()
- 6.4 question_types/scale/theme/scale.theme.inc \theme_scale_answer_node_view()
- 7.6 question_types/scale/theme/scale.theme.inc \theme_scale_answer_node_view()
- 7 question_types/scale/theme/scale.theme.inc \theme_scale_answer_node_view()
- 7.5 question_types/scale/theme/scale.theme.inc \theme_scale_answer_node_view()
Theme function for the answer part of the node view
Parameters
$alternatives: Array of alternatives as text
1 theme call to theme_scale_answer_node_view()
- ScaleQuestion::getNodeView in question_types/
scale/ scale.classes.inc - Implementation of getNodeView
File
- question_types/
scale/ theme/ scale.theme.inc, line 16 - The theme file for scale.
Code
function theme_scale_answer_node_view($variables) {
$alternatives = $variables['alternatives'];
$header = array(
t('Alternatives'),
);
$rows = array();
foreach ($alternatives as $alternative) {
$rows[] = array(
$alternative,
);
}
return theme('table', array(
'header' => $header,
'rows' => $rows,
));
}