Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

mod/quiz: Add a link back to the course page after a quiz is completed

  • Loading branch information...
commit c10cac4e4afd898d29116ca3fb5cab2478ae413e 1 parent e4e1faa
fmarier authored
Showing with 4 additions and 0 deletions.
  1. +1 −0  lang/en_utf8/quiz.php
  2. +3 −0  mod/quiz/review.php
View
1  lang/en_utf8/quiz.php
@@ -256,6 +256,7 @@
$string['giftnovalidquestion'] = 'No valid question found';
$string['giftqtypenotset'] = 'Question type is not set';
$string['giftrightbraceerror'] = 'Could not find a }';
+$string['gobacktocourse'] = 'Click here to go back to the course';
$string['grade'] = 'Grade';
$string['gradeall'] = 'Grade All';
$string['gradeaverage'] = 'Average grade';
View
3  mod/quiz/review.php
@@ -238,6 +238,9 @@
}
echo '</tbody></table>';
+ // Button to go back to the course page
+ echo '<p align="center"><a href="'.$CFG->wwwroot.'/course/view.php?id='.$quiz->course.'">'.get_string('gobacktocourse', 'quiz').'</a></p>';
+
/// Print the navigation panel if required
$numpages = quiz_number_of_pages($attempt->layout);
if ($numpages > 1 and !$showall) {
Please sign in to comment.
Something went wrong with that request. Please try again.