You are here

function variable_store_del in Variable 7

Same name and namespace in other branches
  1. 7.2 variable_store/variable_store.module \variable_store_del()

Delete variable from db

1 call to variable_store_del()
VariableStoreRealmController::variable_del in variable_store/variable_store.class.inc
Delete single variable.

File

variable_store/variable_store.module, line 35
Variable API module - Database storage

Code

function variable_store_del($realm, $key, $name, $rebuild = TRUE) {
  $store =& variable_store($realm, $key);
  db_delete('variable_store')
    ->condition('realm', $realm)
    ->condition('realm_key', $key)
    ->condition('name', $name)
    ->execute();
  unset($store[$name]);
  cache_clear_all('variable:' . $realm . ':' . $key, 'cache_bootstrap');
}