MDL-44316 core_tag: changed the API to accept a contextid and component

This commit is contained in:
Mark Nelson
2014-03-22 13:50:08 -07:00
parent 8dfc4d9c58
commit cc033d48b5
24 changed files with 428 additions and 68 deletions
+3
View File
@@ -231,6 +231,9 @@ function uninstall_plugin($type, $name) {
$fs = get_file_storage();
$fs->delete_component_files($component);
// Delete all tag instances for this component.
$DB->delete_records('tag_instance', array('component' => $component));
// Finally purge all caches.
purge_all_caches();