You are here

javascript_aggregator.install in Javascript Aggregator 5

Same filename and directory in other branches
  1. 6 javascript_aggregator.install

Install/Uninstall hooks for the JavaScript Aggregator module.

File

javascript_aggregator.install
View source
<?php

/**
 * @file
 * Install/Uninstall hooks for the JavaScript Aggregator module.
 */

/**
 * Implementation of hook_uninstall().
 */
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');
}

Functions

Namesort descending Description
javascript_aggregator_uninstall Implementation of hook_uninstall().