You are here

function css_injector_uninstall in CSS Injector 6

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

Implementation of hook_uninstall().

File

./css_injector.install, line 56

Code

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