Issue #1261978 by rfay: Fix uninstall failure 7.x-1.7
authorRandy Fay
Mon, 5 Sep 2011 12:02:08 +0000 (08:02 -0400)
committerRandy Fay
Mon, 5 Sep 2011 12:02:08 +0000 (08:02 -0400)
css_injector.install

index 17918f8..d034f88 100644 (file)
@@ -61,6 +61,7 @@ function css_injector_schema() {
 function css_injector_uninstall() {
   cache_clear_all('css_injector:*', 'cache', TRUE);
   $rules = db_query("SELECT * FROM {css_injector_rule}", array(), array('fetch' => PDO::FETCH_ASSOC))->fetchAllAssoc('crid');
+  module_load_include('module', 'css_injector');
   foreach($rules as $crid => $rule) {
     file_unmanaged_delete(_css_injector_rule_uri($crid));
   }