You are here

function js_injector_uninstall in JS injector 7.2

Same name and namespace in other branches
  1. 8 js_injector.install \js_injector_uninstall()
  2. 6.2 js_injector.install \js_injector_uninstall()
  3. 6 js_injector.install \js_injector_uninstall()
  4. 7 js_injector.install \js_injector_uninstall()

Implements hook_uninstall().

This is required to cleanup the left over files.

File

./js_injector.install, line 118
js_injector.install

Code

function js_injector_uninstall() {

  // Clean up the directory and all rules, we first need to include the module
  // file that defines the constant.
  module_load_include('module', 'js_injector');
  file_unmanaged_delete_recursive(drupal_realpath(JS_INJECTOR_DIRECTORY_URI));
}