MDL-58267 completion: allow to set default activity completion
Part of MDL-58138 epic
This commit is contained in:
committed by
Jake Dallimore
parent
06cdda468a
commit
7f53e8aa22
@@ -28,9 +28,7 @@ require_once(__DIR__.'/../config.php');
|
||||
require_once($CFG->dirroot.'/course/lib.php');
|
||||
require_once($CFG->libdir.'/completionlib.php');
|
||||
|
||||
$id = required_param('id', PARAM_INT); // course id
|
||||
// @TODO: Change this to module IDs.
|
||||
$cmids = optional_param_array('cmid', [], PARAM_INT);
|
||||
$id = required_param('id', PARAM_INT); // Course id.
|
||||
|
||||
// Perform some basic access control checks.
|
||||
if ($id) {
|
||||
@@ -67,7 +65,7 @@ $renderer = $PAGE->get_renderer('core_course', 'bulk_activity_completion');
|
||||
|
||||
// Print the form.
|
||||
echo $OUTPUT->header();
|
||||
echo $OUTPUT->heading(get_string('editcoursecompletionsettings', 'core_completion'));
|
||||
echo $OUTPUT->heading(get_string('defaultcompletion', 'completion'));
|
||||
|
||||
echo $renderer->navigation($id, 'defaultcompletion');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user