You are here

function conditional_fields_uninstall in Conditional Fields 6

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

Implementation of hook_uninstall().

File

./conditional_fields.install, line 52
Install, update and uninstall functions for the Conditional Fields module.

Code

function conditional_fields_uninstall() {
  drupal_uninstall_schema('conditional_fields');

  // 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');
}