MDL-13085 delete grades and items when uninstalling module

This commit is contained in:
skodak
2008-01-21 23:35:11 +00:00
parent 9d6bdd5874
commit 5db97707d3
2 changed files with 24 additions and 0 deletions
+4
View File
@@ -144,6 +144,10 @@
notify("Error occurred while deleting the $strmodulename records from the config table");
}
// cleanup the gradebook
require_once($CFG->libdir.'/gradelib.php');
grade_uninstalled_module($module->name);
// Then the tables themselves
drop_plugin_tables($module->name, "$CFG->dirroot/mod/$module->name/db/install.xml", false);