function features_uninstall in Features 7.2
Same name and namespace in other branches
- 6 features.install \features_uninstall()
- 7 features.install \features_uninstall()
Implements hook_uninstall().
File
- ./
features.install, line 72 - Install, update and uninstall functions for the features module.
Code
function features_uninstall() {
variable_del('features_codecache');
variable_del('features_default_export_path');
variable_del('features_semaphore');
variable_del('features_ignored_orphans');
variable_del('features_feature_locked');
variable_del('features_lock_mode');
variable_del('features_update_7202_fixed_tmp');
variable_del('features_update_7202_possibly_broken');
db_delete('variable')
->condition('name', 'features_admin_show_component_%', 'LIKE')
->execute();
db_delete('variable')
->condition('name', 'features_component_locked_%', 'LIKE')
->execute();
if (db_table_exists('menu_custom')) {
db_delete('menu_custom')
->condition('menu_name', 'features')
->execute();
}
db_delete('menu_links')
->condition('module', 'features')
->execute();
}