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	27 Aug 2007 07:06:51 -0000
@@ -469,18 +469,24 @@
 }
 
 /**
- * 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]);
+  $placeholders = array_fill(0, count($names), "'%s'");
+  db_query('DELETE FROM {variable} WHERE name IN ('. implode(',', $placeholders) .')', $names);
+  foreach ($names as $name) {
+    unset($conf[$name]);
+  }
+  cache_clear_all('variables', 'cache');
 }
 
 
