Skip to content
Snippets Groups Projects
Commit 4281096d authored by Sivaji Ganesh Jojodae's avatar Sivaji Ganesh Jojodae
Browse files

#635684 Remove correct answer and user answer printing, but keep scoring and quiz result by sivaji.

parent 8bd0c928
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
......@@ -39,7 +39,7 @@ function quiz_user_results($result_id) {
/**
* Form for showing feedback, and for editing the feedback if necessary...
*
*
* @param $questions
* array of questions to inclide in the report
* @param $showpoints
......@@ -493,10 +493,7 @@ function theme_quiz_take_summary($quiz, $questions, $score, $summary) {
//if ($score['percentage_score']) {
if (!empty($score['possible_score'])) {
if (!$score['is_evaluated']) {
$msg = t(
'Parts of this @quiz have not been evaluated yet. The score below is not final.',
array('@quiz' => QUIZ_NAME)
);
$msg = t('Parts of this @quiz have not been evaluated yet. The score below is not final.', array('@quiz' => QUIZ_NAME));
drupal_set_message($msg, 'error');
}
$output .= '<div id="quiz_score_possible">'. t('You got %num_correct of %question_count possible points.', array('%num_correct' => $score['numeric_score'], '%question_count' => $score['possible_score'])) .'</div>'."\n";
......@@ -504,8 +501,9 @@ function theme_quiz_take_summary($quiz, $questions, $score, $summary) {
}
$output .= '<div id="quiz_summary">'. check_markup($summary, $quiz->format) .'</div><br />'."\n";
// Get the feedback for all questions.
$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);
}
return $output;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment