You are here

public function OgVariableStoreRealmStore::variable_del in OG Variables 7

Delete single variable.

Parameters

$name: Variable name

Overrides VariableStoreRealmStore::variable_del

File

./og_variables.class.inc, line 88
Variable Realm controller.

Class

OgVariableStoreRealmStore
@file Variable realm controller

Code

public function variable_del($name) {
  if (isset($this->variables[$name])) {
    $this->deleted[$name] = $name;

    // Since $variables is a reference we just need to delete the store value.
    variable_store_del($this->realm, $this->key, $name);
  }
}