You are here

function javascript_aggregator_uninstall in Javascript Aggregator 5

Same name and namespace in other branches
  1. 6 javascript_aggregator.install \javascript_aggregator_uninstall()

Implementation of hook_uninstall().

File

./javascript_aggregator.install, line 11
Install/Uninstall hooks for the JavaScript Aggregator module.

Code

function javascript_aggregator_uninstall() {

  // Clear the cached JavaScript.
  file_scan_directory(file_create_path('js'), '.*', array(
    '.',
    '..',
    'CVS',
  ), 'file_delete', TRUE);

  // Delete the variables.
  variable_del('javascript_aggregator_aggregate_js');
  variable_del('javascript_aggregator_optimize_js');
  variable_del('javascript_aggregator_exclude_js');
  variable_del('javascript_aggregator_jsmin');
  variable_del('javascript_aggregator_gzip');
}