function theme_short_answer_user_answer in Quiz 8.4
Same name and namespace in other branches
- 8.6 question_types/quiz_short_answer/theme/short_answer.theme.inc \theme_short_answer_user_answer()
- 8.5 question_types/quiz_short_answer/theme/short_answer.theme.inc \theme_short_answer_user_answer()
- 6.4 question_types/short_answer/theme/short_answer.theme.inc \theme_short_answer_user_answer()
- 7.6 question_types/short_answer/theme/short_answer.theme.inc \theme_short_answer_user_answer()
- 7 question_types/short_answer/theme/short_answer.theme.inc \theme_short_answer_user_answer()
- 7.4 question_types/short_answer/theme/short_answer.theme.inc \theme_short_answer_user_answer()
- 7.5 question_types/short_answer/theme/short_answer.theme.inc \theme_short_answer_user_answer()
@todo Please document this function.
See also
1 theme call to theme_short_answer_user_answer()
- ShortAnswerResponse::getReportFormResponse in question_types/
short_answer/ lib/ Drupal/ short_answer/ ShortAnswerResponse.php - Implementation of getReportFormResponse
File
- question_types/
short_answer/ short_answer.theme.inc, line 47 - Theme functions for short_answer.
Code
function theme_short_answer_user_answer($variables) {
$answer = $variables['answer'];
$correct = $variables['correct'];
$header = array(
t('Correct Answer'),
t('User Answer'),
);
$row = array(
array(
$correct,
$answer,
),
);
return theme('table', array(
'header' => $header,
'rows' => $row,
));
}