variable_del
includes/bootstrap.inc, line 534
- Versions
- 4.6 – 7
variable_del($name)
Unset a persistent variable.
Parameters
$name The name of the variable to undefine.
▾ 32 functions call variable_del()
- aggregator_uninstall in modules/aggregator/aggregator.install
- Implementation of hook_uninstall().
- color_scheme_form_submit in modules/color/color.module
- Submit handler for color change form.
- comment_node_type in modules/comment/comment.module
- Implementation of hook_node_type().
- comment_update_6002 in modules/comment/comment.install
- Changed comment settings from global to per-node -- copy global settings to all node types.
- contact_uninstall in modules/contact/contact.install
- Implementation of hook_uninstall().
- drupal_cron_cleanup in includes/common.inc
- Shutdown function for cron cleanup.
- drupal_cron_run in includes/common.inc
- Executes a cron run when called
- example_profile_tasks in developer/example.profile
- Perform any final installation tasks for this profile.
- forum_taxonomy in modules/forum/forum.module
- Implementation of hook_taxonomy().
- forum_uninstall in modules/forum/forum.install
- Implementation of hook_uninstall().
- hook_node_type in developer/hooks/node.php
- Act on node type changes.
- hook_uninstall in developer/hooks/install.php
- Remove any tables or variables that the module sets.
- install_tasks in ./install.php
- Tasks performed after the database is initialized.
- locale_update_6005 in modules/locale/locale.install
- Change language setting variable of content types.
- menu_rebuild in includes/menu.inc
- (Re)populate the database tables used by various menu functions.
- multipage_form_example_delete in developer/examples/multipage_form_example.module
- Implementation of hook_delete().
- node_access_needs_rebuild in modules/node/node.module
- Flag / unflag the node access grants for rebuilding, or read the current value of the flag.
- node_type_form_submit in modules/node/content_types.inc
- Implementation of hook_form_submit().
- profile_uninstall in modules/profile/profile.install
- Implementation of hook_uninstall().
- search_uninstall in modules/search/search.install
- Implementation of hook_uninstall().
- statistics_uninstall in modules/statistics/statistics.install
- Implementation of hook_uninstall().
- system_settings_form_submit in modules/system/system.module
- Execute the system_settings_form.
- system_themes_form_submit in modules/system/system.admin.inc
- Process system_themes_form form submissions.
- system_theme_settings_submit in modules/system/system.admin.inc
- Process system_theme_settings form submissions.
- system_update_6017 in modules/system/system.install
- Rename settings related to user.module email notifications.
- system_update_6021 in modules/system/system.install
- Migrate the menu items from the old menu system to the new menu_links table.
- system_update_6036 in modules/system/system.install
- Change the search schema and indexing.
- system_update_6042 in modules/system/system.install
- Upgrade recolored theme stylesheets to new array structure.
- system_update_6044 in modules/system/system.install
- RC1 to RC2 index cleanup.
- update_settings_submit in modules/update/update.settings.inc
- Submit handler for the settings tab.
- update_uninstall in modules/update/update.install
- Implementation of hook_uninstall().
- _update_remove_update_status_variables in modules/update/update.install
- Private helper to clear out stale variables from update_status 5.x contrib. See alsoupdate_install()
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]);
}
?> 