function update_variable_del

Delete a variable from the database during the 7.x-8.x upgrade path.

Use this during the 7.x-8.x upgrade path instead of variable_del().

Parameters

string $name: The name of the variable to delete.

See also

update_variable_get()

update_variable_set()

Related topics

14 calls to update_variable_del()
block_update_8000 in drupal/core/modules/block/block.install
Block cache is always enabled in 8.x.
locale_update_8001 in drupal/core/modules/locale/locale.install
Language type 'language' renamed to 'language_interface'.
locale_update_8004 in drupal/core/modules/locale/locale.install
Rename language providers to language negotiation methods.
node_update_8001 in drupal/core/modules/node/node.install
Rename node type language variable names.
node_update_8003 in drupal/core/modules/node/node.install
Rename node type language variable names.

... See full list

File

drupal/core/includes/update.inc, line 1344
Drupal database update API.

Code

function update_variable_del($name) {
  db_delete('variable')
    ->condition('name', $name)
    ->execute();
}