function theme_cloze_user_answer in Cloze 7
Same name and namespace in other branches
- 6 theme/cloze.theme.inc \theme_cloze_user_answer()
@file Theme functions for cloze.
1 theme call to theme_cloze_user_answer()
- ClozeResponse::getReportFormResponse in ./
cloze.classes.inc - Implementation of getReportFormResponse()
File
- theme/
cloze.theme.inc, line 7 - Theme functions for cloze.
Code
function theme_cloze_user_answer($variables) {
$header = array(
t('Correct Answer'),
t('User Answer'),
);
$row = array(
array(
$variables['correct'],
$variables['answer'],
),
);
$output = theme('table', array(
'header' => $header,
'rows' => $row,
));
return $output;
}