function variable_del

cis7 bootstrap.inc variable_del($name)
cle7 bootstrap.inc variable_del($name)
elmsmedia7 bootstrap.inc variable_del($name)
icor7 bootstrap.inc variable_del($name)
meedjum_blog7 bootstrap.inc variable_del($name)
mooc7 bootstrap.inc variable_del($name)

Unsets a persistent variable.

Case-sensitivity of the variable_* functions depends on the database collation used. To avoid problems, always use lower case for persistent variable names.

Parameters

$name: The name of the variable to undefine.

See also

variable_get()

variable_set()

191 calls to variable_del()
addanother_uninstall in sites/all/modules/ulmus/addanother/addanother.install
Implement hook_uninstall().
addanother_update_7001 in sites/all/modules/ulmus/addanother/addanother.install
Port over to the new variable storage system.
admin_menu_toggle_modules in sites/all/modules/ulmus/admin_menu/admin_menu.inc
Menu callback; Enable/disable developer modules.
admin_menu_uninstall in sites/all/modules/ulmus/admin_menu/admin_menu.install
Implements hook_uninstall().
admin_theme_uninstall in sites/all/modules/ulmus/admin_theme/admin_theme.install
Implementation of hook_uninstall().

... See full list

1 string reference to 'variable_del'
devel_variable_form_submit in sites/all/modules/ulmus/devel/devel.pages.inc

File

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

Code

function variable_del($name) {
  global $conf;

  db_delete('variable')->condition('name', $name)->execute();
  cache_clear_all('variables', 'cache_bootstrap');

  unset($conf[$name]);
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.