variable_del

Definition

variable_del($name)
includes/bootstrap.inc, line 514

Description

Unset a persistent variable.

Parameters

$name The name of the variable to undefine.

Code

<?php
function variable_del($name) {
  global $conf;

  db_query("DELETE FROM {variable} WHERE name = '%s'", $name);
  cache_clear_all('variables', 'cache');

  unset($conf[$name]);
}
?>
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.