Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-27710 lesson module: add the following jump options: unseen branc…

…h page, random page and random branch
  • Loading branch information...
commit 1bca1284f20caad467de5b7c8ad2249d3f18cf60 1 parent 3c4111e
rwijaya authored March 20, 2012

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  mod/lesson/pagetypes/branchtable.php
4  mod/lesson/pagetypes/branchtable.php
@@ -79,6 +79,10 @@ public static function get_jumptooptions($firstpage, $lesson) {
79 79
         $jump[LESSON_NEXTPAGE] = get_string("nextpage", "lesson");
80 80
         $jump[LESSON_PREVIOUSPAGE] = get_string("previouspage", "lesson");
81 81
         $jump[LESSON_EOL] = get_string("endoflesson", "lesson");
  82
+        $jump[LESSON_UNSEENBRANCHPAGE] = get_string("unseenpageinbranch", "lesson");
  83
+        $jump[LESSON_RANDOMPAGE] = get_string("randompageinbranch", "lesson");
  84
+        $jump[LESSON_RANDOMBRANCH] = get_string("randombranch", "lesson");
  85
+
82 86
         if (!$firstpage) {
83 87
             if (!$apageid = $DB->get_field("lesson_pages", "id", array("lessonid" => $lesson->id, "prevpageid" => 0))) {
84 88
                 print_error('cannotfindfirstpage', 'lesson');

0 notes on commit 1bca128

Please sign in to comment.
Something went wrong with that request. Please try again.