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()

7 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.
locale_update_8008 in drupal/core/modules/locale/locale.install
Rename the option variables of the locale language negotiation.
node_update_8001 in drupal/core/modules/node/node.install
Rename node type language variable names.

... See full list

File

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

Code

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