]> git.mjollnir.org Git - moodle.git/commitdiff
Add an "unenrol" link for students on the course page
authormoodler <moodler>
Thu, 9 Oct 2003 16:47:57 +0000 (16:47 +0000)
committermoodler <moodler>
Thu, 9 Oct 2003 16:47:57 +0000 (16:47 +0000)
course/lib.php

index 3cd740fc4ed5a69943a00d863c51b6c5f950bb79..3aa5068b5c49fbd1518a7f1955ed67269f7f3399 100644 (file)
@@ -870,6 +870,8 @@ function print_course_admin_links($course, $width=180) {
             $admindata[]="<a href=\"$CFG->changepassword\">".get_string("changepassword")."...</a>";
             $adminicon[]="<img src=\"$CFG->pixpath/i/user.gif\" height=16 width=16 alt=\"\">";
         }
+        $admindata[]="<a href=\"unenrol.php?id=$course->id\">".get_string("unenrolme", "", $course->shortname)."...</a>";
+        $adminicon[]="<img src=\"$CFG->pixpath/i/user.gif\" height=16 width=16 alt=\"\">";
     } 
 
     if (!empty($admindata)) {