function file_entity_uninstall in File Entity (fieldable files) 7.3
Same name and namespace in other branches
- 8.2 file_entity.install \file_entity_uninstall()
- 7 file_entity.install \file_entity_uninstall()
- 7.2 file_entity.install \file_entity_uninstall()
Implements hook_uninstall().
File
- ./
file_entity.install, line 229 - Install, update and uninstall functions for the file_entity module.
Code
function file_entity_uninstall() {
drupal_load('module', 'file_entity');
foreach (file_type_load_all(TRUE) as $type) {
file_type_delete($type);
}
// Remove the added column to the core {file_managed} table.
db_drop_field('file_managed', 'type');
// Remove variables.
variable_del('file_entity_max_filesize');
variable_del('file_entity_default_allowed_extensions');
variable_del('file_entity_default_file_directory');
variable_del('file_entity_alt');
variable_del('file_entity_title');
variable_del('file_entity_allow_insecure_download');
variable_del('file_entity_file_upload_wizard_skip_file_type');
variable_del('file_entity_file_upload_wizard_skip_scheme');
variable_del('file_entity_file_upload_wizard_skip_fields');
variable_del('file_entity_protect_repeated_render');
// Remove any items from the file type queue if still there.
DrupalQueue::get('file_entity_type_determine')
->deleteQueue();
cache_clear_all('entity_info', 'cache', TRUE);
cache_clear_all('schema', 'cache', TRUE);
}