You are here

function unique_field_uninstall in Unique field 7

Same name and namespace in other branches
  1. 5 unique_field.install \unique_field_uninstall()
  2. 6 unique_field.install \unique_field_uninstall()

Implements hook_uninstall().

Deletes all module variables and then clears the variables cache.

File

./unique_field.install, line 13
Installation/uninstallation routines for the unique_field module.

Code

function unique_field_uninstall() {
  db_query("DELETE FROM {variable} WHERE name LIKE 'unique\\_field\\_%'");
  cache_clear_all('variables', 'cache');
}