Remove blocks on uninstall
authorkiz_0987
Wed, 2 May 2007 11:19:52 +0000 (11:19 +0000)
committerkiz_0987
Wed, 2 May 2007 11:19:52 +0000 (11:19 +0000)
gallery.install

index 4c690ed..a6f633b 100644 (file)
@@ -16,8 +16,10 @@ function gallery_install() {
  * Implementation of hook_uninstall
  */
 function gallery_uninstall() {
-  // remove all gallery related variables
+  // Remove all gallery related variables
   db_query("DELETE FROM {variable} WHERE name LIKE 'gallery_%'");
+  // Remove from blocks table
+  db_query("DELETE FROM {blocks} WHERE module = 'gallery'");
 }
 
 ?>