Project: moodle
Issue MDL-40907: Replace add_to_log with an event trigger - course module
Replace the add_to_log calls for the following area, with a call to the get_legacy_logdata function in the event class. *Course / module* /course/modlib.php:145: add_to_log($course->id, "course", "add mod", /course/modlib.php:148: add_to_log($course->id, $moduleinfo->modulename, "add", /course/modlib.php:493: add_to_log($course->id, "course", "update mod", /course/modlib.php:496: add_to_log($course->id, $moduleinfo->modulename, "update", /course/lib.php:1561: add_to_log($cm->course, 'course', "delete mod", /course/dnduploadlib.php:716: add_to_log($this->course->id, "course", "add mod", /course/dnduploadlib.php:719: add_to_log($this->course->id, $mod->modname, "add", /course/resources.php:51: add_to_log($course->id, $modname, 'view all', "index.php?id=$course->id", '');
Story points: 30