You are here

function theme_cloze_user_answer in Quiz 8.4

@file Theme functions for cloze.

1 theme call to theme_cloze_user_answer()
ClozeResponse::getReportFormResponse in question_types/cloze/lib/Drupal/cloze/ClozeResponse.php
Implementation of getReportFormResponse()

File

question_types/cloze/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;
}