function hook_uninstall

This hook will be executed when a module is "uninstalled" in the system. Once a module is disabled, an "uninstall" link will appear.

It is expected to go in a PHP file named [module].install. Ex: system.install

See also

hook_install()

hook_enable()

hook_update($old_schema, $new_schema)

hook_disable()

File

includes/hook.api.php, line 486
Lists all available hooks within FlightPath's core code.

Code

function hook_uninstall() {
  db_query("DROP TABLE mycustomtable ... ");
}