hook_uninstall
- Versions
- 5 – 7
hook_uninstall()
Remove any information that the module sets.
The information that the module should remove includes:
- variables that the module has set using variable_set() or system_settings_form()
- modifications to existing tables
The module should not remove its entry from the {system} table. Database tables defined by hook_schema() will be removed automatically.
The uninstall hook will fire when the module gets uninstalled but before the module's database tables are removed, allowing your module to query its own tables during this routine.
See also
@see hook_schema()
Related topics
Code
modules/system/system.api.php, line 2056
<?php
function hook_uninstall() {
variable_del('upload_file_types');
}
?>Login or register to post comments 