MDL-40428 Libraries: Deprecated delete_context

This commit is contained in:
Rajesh Taneja
2013-07-11 12:18:55 +08:00
parent 1de02d62c9
commit c592eea2d3
10 changed files with 38 additions and 33 deletions
+1 -3
View File
@@ -208,9 +208,7 @@ function uninstall_plugin($type, $name) {
// delete module contexts
if ($coursemods) {
foreach ($coursemods as $coursemod) {
if (!delete_context(CONTEXT_MODULE, $coursemod->id)) {
echo $OUTPUT->notification("Could not delete the context for $strpluginname with id = $coursemod->id");
}
context_helper::delete_instance(CONTEXT_MODULE, $coursemod->id);
}
}