Permalink
Browse files

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

…h page, random page and random branch
  • Loading branch information...
1 parent c856a1f commit 639818fc9455f01384417df46bdb52b7fe63856a @rwijaya rwijaya committed Mar 20, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 mod/lesson/pagetypes/branchtable.php
@@ -79,6 +79,10 @@ public static function get_jumptooptions($firstpage, lesson $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 639818f

Please sign in to comment.