You are here

function theme_short_answer_user_answer in Quiz 8.4

Same name and namespace in other branches
  1. 8.6 question_types/quiz_short_answer/theme/short_answer.theme.inc \theme_short_answer_user_answer()
  2. 8.5 question_types/quiz_short_answer/theme/short_answer.theme.inc \theme_short_answer_user_answer()
  3. 6.4 question_types/short_answer/theme/short_answer.theme.inc \theme_short_answer_user_answer()
  4. 7.6 question_types/short_answer/theme/short_answer.theme.inc \theme_short_answer_user_answer()
  5. 7 question_types/short_answer/theme/short_answer.theme.inc \theme_short_answer_user_answer()
  6. 7.4 question_types/short_answer/theme/short_answer.theme.inc \theme_short_answer_user_answer()
  7. 7.5 question_types/short_answer/theme/short_answer.theme.inc \theme_short_answer_user_answer()

@todo Please document this function.

See also

http://drupal.org/node/1354

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,
  ));
}