Index: views_filterblock.install
===================================================================
RCS file: views_filterblock.install
diff -N views_filterblock.install
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ views_filterblock.install	19 Jan 2008 15:58:51 -0000
@@ -0,0 +1,23 @@
+<?php
+// $Id$
+
+/**
+ * Helper function for views_filterblock_uninstall; deletes all variables whose names
+ * start with the given prefix.
+ */
+function _views_filterblock_variable_delete_prefix($prefix) {
+  global $conf;
+  foreach ($conf as $key => $value) {
+    if (strncmp($key, $prefix, strlen($prefix)) == 0) {
+      variable_del($key);
+    }
+  }
+}
+
+/**
+ * Implementation of hook_uninstall
+ */
+function views_filterblock_uninstall() {
+  _views_filterblock_variable_delete_prefix('views_filterblock_view.');
+  variable_del('views_filterblock_num');
+}
