Definition

hook_uninstall()
drupal-cvs/modules/system/system.api.php, line 1500

Description

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.

The uninstall hook will fire when the module gets uninstalled.

Related topics

Namesort iconDescription
HooksAllow modules to interact with the Drupal core.

Code

<?php
function hook_uninstall() {
  drupal_uninstall_schema('upload');
  variable_del('upload_file_types');
}
?>