Details
-
Type:
Task
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.1
-
Fix Version/s: 3.2
-
Component/s: Course, Events API
-
Testing Instructions:
-
Affected Branches:MOODLE_31_STABLE
-
Fixed Branches:MOODLE_32_STABLE
-
Pull from Repository:
-
Pull Master Branch:wip-
MDL-53292-master -
Pull Master Diff URL:
Description
While working on MDL-44078 I noticed that callback delete_course is not needed - same functionality may be achieved by observing event core\event\course_content_deleted
For information: Event core\event\course_content_deleted is triggered when course is deleted, when another course is restored into the current with deleting contents (both "Restore" and "Import" operations).
Event core\event\course_deleted is only triggered when the course is deleted completely. Callback "delete_course" was called on deleting contents and not deleting course. Bad naming is another reason to get rid of the callback.
Attachments
Issue Links
- has been marked as being related by
-
MDL-53297 Remove callback delete_course deprecated in 3.2
-
- Closed
-