You are here

function theme_quiz_drag_drop_response in Quiz Drag Drop 7

Theme function for the quiz_drag_drop report.

Parameters

array $variables: Array of data to be presented in the report.

1 theme call to theme_quiz_drag_drop_response()
DragDropResponse::getReportFormResponse in ./quiz_drag_drop.classes.inc
Implementation of getReportFormResponse.

File

theme/quiz_drag_drop.theme.inc, line 16
Theming functions for the quiz_drag_drop question type.

Code

function theme_quiz_drag_drop_response($variables) {
  $output = '';
  if ($variables['data']['is_skipped'] == 1) {
    $output = t('Question skipped.');
  }
  else {
    if ($variables['data']['score'] > 0) {
      $output = t('Nice, all matches are correct.');
    }
    else {
      $output = t('Some of the matches are not correct.');
    }
  }
  return $output;
}