variable_del

Versions
4.6 – 7
variable_del($name)

Unset a persistent variable.

See also

variable_get(), variable_set()

Parameters

$name The name of the variable to undefine.

▾ 45 functions call variable_del()

aggregator_sanitize_configuration in modules/aggregator/aggregator.module
Check and sanitize aggregator configuration.
aggregator_uninstall in modules/aggregator/aggregator.install
Implement hook_uninstall().
comment_node_type_delete in modules/comment/comment.module
Implement hook_node_type_delete().
comment_uninstall in modules/comment/comment.install
Implement hook_uninstall().
comment_update_7000 in modules/comment/comment.install
Remove comment settings for page ordering.
contact_uninstall in modules/contact/contact.install
Implement hook_uninstall().
contact_update_7000 in modules/contact/contact.install
Rename the threshold limit variable.
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.
field_ui_field_attach_delete_bundle in modules/field_ui/field_ui.module
Implement hook_field_attach_delete_bundle().
field_ui_field_attach_rename_bundle in modules/field_ui/field_ui.module
Implement hook_field_attach_rename_bundle().
field_ui_field_overview_form_submit in modules/field_ui/field_ui.admin.inc
Submit handler for the field overview form.
filter_update_7001 in modules/filter/filter.install
Break out "escape HTML filter" option to its own filter.
filter_update_7004 in modules/filter/filter.install
Move filter settings storage into {filter} table.
forum_uninstall in modules/forum/forum.install
Implement hook_uninstall().
hook_node_type_delete in modules/node/node.api.php
Act on node type deletion.
hook_node_type_update in modules/node/node.api.php
Act on node type changes.
hook_taxonomy_vocabulary_delete in modules/taxonomy/taxonomy.api.php
Respond to the deletion of taxonomy vocabularies.
hook_uninstall in modules/system/system.api.php
Remove any information that the module sets.
locale_uninstall in modules/locale/locale.install
Implement hook_uninstall().
locale_update_7001 in modules/locale/locale.install
Upgrade language negotiation settings.
menu_rebuild in includes/menu.inc
(Re)populate the database tables used by various menu functions.
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_delete_confirm_submit in modules/node/content_types.inc
Process content type delete confirm submissions.
node_type_form_submit in modules/node/content_types.inc
Implement hook_form_submit().
node_update_7004 in modules/node/node.install
Extend the existing default preview and teaser settings to all node types.
profile_uninstall in modules/profile/profile.install
Implement hook_uninstall().
scaffolding_example_uninstall in developer/examples/scaffolding_example/scaffolding_example.install
Implementation of hook_uninstall().
search_uninstall in modules/search/search.install
Implement hook_uninstall().
simpletest_uninstall in modules/simpletest/simpletest.install
Implement hook_uninstall().
statistics_uninstall in modules/statistics/statistics.install
Implement hook_uninstall().
system_image_toolkit_settings in modules/system/system.admin.inc
Form builder; Configure site image toolkit usage.
system_run_cron_image in modules/system/system.module
Menu callback; executes cron via an image callback.
system_themes_form_submit in modules/system/system.admin.inc
Process system_themes_form form submissions.
system_update_7004 in modules/system/system.install
Remove hardcoded numeric deltas from all blocks in core.
system_update_7005 in modules/system/system.install
Remove throttle columns and variables.
system_update_7021 in modules/system/system.install
Add new blocks to new regions, migrate custom variables to blocks.
system_update_7034 in modules/system/system.install
Migrate the file_downloads setting and create the new {file} table.
system_update_7036 in modules/system/system.install
Split the 'access site in maintenance mode' permission from 'administer site configuration'.
taxonomy_uninstall in modules/taxonomy/taxonomy.install
Implement hook_uninstall().
tracker_uninstall in modules/tracker/tracker.install
Implement hook_uninstall().
update_settings_submit in modules/update/update.settings.inc
Submit handler for the settings tab.
update_uninstall in modules/update/update.install
Implement hook_uninstall().
user_update_7003 in modules/user/user.install
Update user settings for cancelling user accounts.

Code

includes/bootstrap.inc, line 765

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

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

  unset($conf[$name]);
}
?>
Login or register to post comments
 
 

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.