unique_field.install 358 B

12345678910111213141516
  1. <?php
  2. /**
  3. * @file
  4. * Installation/uninstallation routines for the unique_field module.
  5. */
  6. /**
  7. * Implements hook_uninstall().
  8. *
  9. * Deletes all module variables and then clears the variables cache.
  10. */
  11. function unique_field_uninstall() {
  12. db_query("DELETE FROM {variable} WHERE name LIKE 'unique\_field\_%'");
  13. cache_clear_all('variables', 'cache');
  14. }