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
@@ -4986,6 +4986,9 @@ function remove_course_contents($courseid, $showfeedback = true, array $options
|
||||
|
||||
// We have tried to delete everything the nice way - now let's force-delete any remaining module data.
|
||||
|
||||
// Delete completion defaults.
|
||||
$DB->delete_records("course_completion_defaults", array("course" => $courseid));
|
||||
|
||||
// Remove all data from availability and completion tables that is associated
|
||||
// with course-modules belonging to this course. Note this is done even if the
|
||||
// features are not enabled now, in case they were enabled previously.
|
||||
|
||||
Reference in New Issue
Block a user