You are here

function conditional_fields_uninstall in Conditional Fields 5

Same name and namespace in other branches
  1. 6.2 conditional_fields.install \conditional_fields_uninstall()
  2. 6 conditional_fields.install \conditional_fields_uninstall()

Implementation of hook_uninstall().

File

./conditional_fields.install, line 36

Code

function conditional_fields_uninstall() {

  // Delete all the conditional fields variables and then clear the variable cache
  db_query("DELETE FROM {variable} WHERE name LIKE 'c_fields_%'");
  cache_clear_all('variables', 'cache');
  db_query('DROP TABLE {conditional_fields}');
}