You are here

function js_injector_uninstall in JS injector 6.2

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

Implementation of hook_uninstall().

File

./js_injector.install, line 68
Install file for js_injector.

Code

function js_injector_uninstall() {
  cache_clear_all('js_injector:*', 'cache', TRUE);
  $results = db_query("SELECT * FROM {js_injector_rule}");
  while ($rule = db_fetch_array($results)) {
    file_delete(file_create_path($rule['file_path']));
  }
  db_query("DROP TABLE {js_injector_rule}");
}