MDL-27547 When deleting a local plugin containing a built-in service, the built-in service is not deleted

This commit is contained in:
Jerome Mouneyrac
2012-04-11 14:49:14 +08:00
parent 9ad535c550
commit bc81eadb19
3 changed files with 27 additions and 17 deletions
+4
View File
@@ -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));