hook_uninstall

Definition

hook_uninstall()
contributions/docs/developer/hooks/install.php, line 248

Description

Remove any tables or variables that the module sets.

The uninstall hook will fire when the module gets uninstalled.

Related topics

Namesort iconDescription
HooksAllow modules to interact with the Drupal core.

Code

function hook_uninstall() {
  db_query('DROP TABLE {profile_fields}');
  db_query('DROP TABLE {profile_values}');
  variable_del('profile_block_author_fields');
}