Index: includes/bootstrap.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/bootstrap.inc,v
retrieving revision 1.181
diff -u -r1.181 bootstrap.inc
--- includes/bootstrap.inc	7 Aug 2007 08:41:24 -0000	1.181
+++ includes/bootstrap.inc	26 Aug 2007 18:51:36 -0000
@@ -469,18 +469,23 @@
 }
 
 /**
- * Unset a persistent variable.
+ * Unset a persistent variable or an array of such.
  *
- * @param $name
- *   The name of the variable to undefine.
+ * @param $names
+ *   The name of the variable to undefine, or an array of such
  */
-function variable_del($name) {
+function variable_del($names) {
   global $conf;
 
-  db_query("DELETE FROM {variable} WHERE name = '%s'", $name);
-  cache_clear_all('variables', 'cache');
+  if (!is_array($names)) {
+    $names = array($names);
+  }
 
-  unset($conf[$name]);
+  foreach ($names as $name) {
+    db_query("DELETE FROM {variable} WHERE name = '%s'", $name);
+    unset($conf[$name]);
+  }
+  cache_clear_all('variables', 'cache');
 }
 
 
