Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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 rwijaya authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 mod/lesson/pagetypes/branchtable.php
View
4 mod/lesson/pagetypes/branchtable.php
@@ -79,6 +79,10 @@ public static function get_jumptooptions($firstpage, $lesson) {
$jump[LESSON_NEXTPAGE] = get_string("nextpage", "lesson");
$jump[LESSON_PREVIOUSPAGE] = get_string("previouspage", "lesson");
$jump[LESSON_EOL] = get_string("endoflesson", "lesson");
+ $jump[LESSON_UNSEENBRANCHPAGE] = get_string("unseenpageinbranch", "lesson");
+ $jump[LESSON_RANDOMPAGE] = get_string("randompageinbranch", "lesson");
+ $jump[LESSON_RANDOMBRANCH] = get_string("randombranch", "lesson");
+
if (!$firstpage) {
if (!$apageid = $DB->get_field("lesson_pages", "id", array("lessonid" => $lesson->id, "prevpageid" => 0))) {
print_error('cannotfindfirstpage', 'lesson');

0 comments on commit 1bca128

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