MDL-27547 When deleting a local plugin containing a built-in service, the built-in service is not deleted
This commit is contained in:
@@ -269,6 +269,10 @@ function uninstall_plugin($type, $name) {
|
||||
|
||||
// perform clean-up task common for all the plugin/subplugin types
|
||||
|
||||
//delete the web service functions and pre-built services
|
||||
require_once($CFG->dirroot.'/lib/externallib.php');
|
||||
external_delete_descriptions($component);
|
||||
|
||||
// delete calendar events
|
||||
$DB->delete_records('event', array('modulename' => $pluginname));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user