hook_uninstall

Versions
5 – 7
hook_uninstall()

Remove any information that the module sets.

The information that the module should remove includes:

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

hook_install()

@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
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.