Hello Guys,
Everything's in the title,
I'd like to remove the feedbacks at the end of the quiz but keep the quiz results and scoring and display it at the end of the quiz.
i tried to remove it from the quiz settings but it seems that when you get rid of the feedback in the quiz settings you also get rid of the quiz results.

To sum up I'd like to show the quiz results (pass/fail and a little text) but not the feedbacks on each questions.

Anybody already did that?

Thanks.

Comments

sivaji_ganesh_jojodae’s picture

Title: remove feedbacks, but keep scoring and quiz result » remove correct answer and user answer printing, but keep scoring and quiz result
Version: 6.x-3.3 » 6.x-4.x-dev
Category: support » feature

In file quiz.pages.inc function theme_quiz_take_summary() line no ~504 comment the line

// $output .= drupal_get_form('quiz_report_form', $questions, ($quiz->pass_rate > 0), TRUE);

I have added this as a feature request to quiz 4.x. In quiz "global configuration" form you can turn on/off the feedback printing. Hope this will help others.

sivaji_ganesh_jojodae’s picture

Status: Active » Fixed

I have added form element to quiz_admin_settings and a IF check to function theme_quiz_take_summary

+  $form['quiz_global_settings']['quiz_display_feedback'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Display @quiz feedback.', array('@quiz' => strtolower(QUIZ_NAME))),
+    '#default_value' => variable_get('quiz_display_feedback', 1),
+    '#description' => t('List the user selected answer and correct answer at the end of the @quiz.', array('@quiz' => QUIZ_NAME)),
+  );
-  $output .= drupal_get_form('quiz_report_form', $questions, ($quiz->pass_rate > 0), TRUE);
-
+  if (variable_get('quiz_display_feedback', 0)) {
+    $output .= drupal_get_form('quiz_report_form', $questions, ($quiz->pass_rate > 0), TRUE);
+  }

Committed to quiz 4.x-dev branch.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.