function theme_truefalse_response in Quiz 8.4
Same name and namespace in other branches
- 6.4 question_types/truefalse/truefalse.module \theme_truefalse_response()
- 7.6 question_types/truefalse/truefalse.module \theme_truefalse_response()
- 7 question_types/truefalse/truefalse.module \theme_truefalse_response()
- 7.4 question_types/truefalse/truefalse.module \theme_truefalse_response()
- 7.5 question_types/truefalse/truefalse.module \theme_truefalse_response()
Theme the response part of the response report
Parameters
$metadata: Can be used as a table header
$data: Can be used as table rows
1 theme call to theme_truefalse_response()
- TrueFalseResponse::getReportFormResponse in question_types/
truefalse/ lib/ Drupal/ truefalse/ TrueFalseResponse.php - Implementation of getReportFormResponse
File
- question_types/
truefalse/ truefalse.module, line 71 - TrueFalse question type for quiz module
Code
function theme_truefalse_response($variables) {
$metadata = $variables['metadata'];
$data = $variables['data'];
return theme('table', array(
'header' => $metadata,
'rows' => $data,
));
}