MDL-70427 admin: remove plugin adhoc tasks during uninstall.

This commit is contained in:
Paul Holden
2021-07-12 20:45:07 +01:00
parent 2094d420e1
commit 2a2fd7ad38
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -209,6 +209,7 @@ function uninstall_plugin($type, $name) {
$DB->delete_records('event', ['component' => $component]);
// Delete scheduled tasks.
$DB->delete_records('task_adhoc', ['component' => $component]);
$DB->delete_records('task_scheduled', array('component' => $component));
// Delete Inbound Message datakeys.