You are here

function advagg_js_compress_uninstall in Advanced CSS/JS Aggregation 6

Same name and namespace in other branches
  1. 7 advagg_js_compress/advagg_js_compress.install \advagg_js_compress_uninstall()

Implementation of hook_uninstall().

File

advagg_js_compress/advagg_js_compress.install, line 43
Handles AdvAgg JS compress installation and upgrade tasks.

Code

function advagg_js_compress_uninstall() {

  // Remove variables.
  variable_del('advagg_js_compress_packer_enable');
  variable_del('advagg_js_compress_inline_cache');
  variable_del('advagg_js_compress_file_cache');
  variable_del('advagg_js_compress_agg_files');
  variable_del('advagg_js_max_compress_ratio');
  variable_del('advagg_js_compress_callback');
  variable_del('advagg_js_compress_inline');
  variable_del('advagg_js_compress_ratio');
  variable_del('advagg_js_compressor');

  // Remove our cache table.
  cache_clear_all('*', 'cache_advagg_js_compress_inline', TRUE);
  cache_clear_all('*', 'cache_advagg_js_compress_file', TRUE);
  drupal_uninstall_schema('advagg_js_compress');
}