MDL-44316 core_tag: changed the API to accept a contextid and component
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user