course completion MDL-2631 Course completion feature - Thanks to Aaron Barnes and Catalyst IT for this significant contribution. It is now officially possible to finish a course!
Even though I've tweaked this and done some polishing, there is still plenty to do on it now in HEAD, mostly to do with UI, usability and strings, so we'll keep working on it. Aaron already has a number of improvements to add to it.
This commit is contained in:
@@ -2291,6 +2291,12 @@ class settings_navigation extends navigation_node {
|
||||
// Add the course settings link
|
||||
$url = new moodle_url('/course/edit.php', array('id'=>$course->id));
|
||||
$coursenode->add(get_string('settings'), $url, self::TYPE_SETTING, null, null, new pix_icon('i/settings', ''));
|
||||
|
||||
// Add the course completion settings link
|
||||
if ($CFG->enablecompletion && $course->enablecompletion) {
|
||||
$url = new moodle_url('/course/completion.php', array('id'=>$course->id));
|
||||
$coursenode->add(get_string('completion', 'completion'), $url, self::TYPE_SETTING, null, null, new pix_icon('i/settings', ''));
|
||||
}
|
||||
}
|
||||
|
||||
if (has_capability('moodle/role:assign', $coursecontext)) {
|
||||
|
||||
Reference in New Issue
Block a user