You are here

function css_injector_uninstall in CSS Injector 7.2

Same name and namespace in other branches
  1. 6 css_injector.install \css_injector_uninstall()
  2. 7 css_injector.install \css_injector_uninstall()

Implements hook_uninstall().

This is required to cleanup the left over files.

File

./css_injector.install, line 107
css_injector.install

Code

function css_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', 'css_injector');
  file_unmanaged_delete_recursive(drupal_realpath(CSS_INJECTOR_DIRECTORY_URI));
}