MDL-46282 core: Add VERP API

This issue is a part of the MDL-47194 Task.
This issue is a part of the MDL-39707 Epic.
This commit is contained in:
Andrew Nicols
2014-09-30 14:22:30 +08:00
parent d07b0302a9
commit 6c0bfb1449
11 changed files with 1807 additions and 3 deletions
+7
View File
@@ -202,6 +202,13 @@ function uninstall_plugin($type, $name) {
// Delete scheduled tasks.
$DB->delete_records('task_scheduled', array('component' => $pluginname));
// Delete Inbound Message datakeys.
$DB->delete_records_sql('messageinbound_datakeys',
'handler IN (SELECT id FROM {messageinbound_handlers} WHERE component = ?)', array($pluginname));
// Delete Inbound Message handlers.
$DB->delete_records('messageinbound_handlers', array('component' => $pluginname));
// delete all the logs
$DB->delete_records('log', array('module' => $pluginname));