You are here

function variable_del in Drupal 4

Same name and namespace in other branches
  1. 5 includes/bootstrap.inc \variable_del()
  2. 6 includes/bootstrap.inc \variable_del()
  3. 7 includes/bootstrap.inc \variable_del()

Unset a persistent variable.

Parameters

$name: The name of the variable to undefine.

16 calls to variable_del()
forum_taxonomy in modules/forum.module
Implementation of hook_taxonomy().
node_search in modules/node.module
Implementation of hook_search().
system_settings_form_submit in modules/system.module
Execute the system_settings_form.
system_themes_submit in modules/system.module
system_theme_settings_submit in modules/system.module

... See full list

File

includes/bootstrap.inc, line 305
Functions that need to be loaded on every Drupal request.

Code

function variable_del($name) {
  global $conf;
  db_query("DELETE FROM {variable} WHERE name = '%s'", $name);
  cache_clear_all('variables');
  unset($conf[$name]);
}