You are here

function display_cache_uninstall in Display Cache 7

Implements hook_uninstall().

File

./display_cache.install, line 32
Schema and install hooks for the Display Cache module.

Code

function display_cache_uninstall() {
  $display_cache_variables = variable_get('display_cache_variables', array());
  foreach ($display_cache_variables as $variable_name) {
    variable_del($variable_name);
  }
  variable_del('display_cache_variables');
  $node_types = node_type_get_types();
  foreach ($node_types as $type) {
    variable_del('display_cache_comment_publication_clears_host_entity_cache_' . $type->type);
  }
}