MDL-13085 delete grades and items when uninstalling module; merged from MOODLE_19_STABLE

This commit is contained in:
skodak
2008-01-21 23:36:19 +00:00
parent 7993f4bdaa
commit 8a0a6046a3
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);