You are here

public function Vars::offsetUnset in Variable API 7

Same name and namespace in other branches
  1. 6.2 vars.module \Vars::offsetUnset()
  2. 6 vars.module \Vars::offsetUnset()
  3. 7.2 vars.classes.inc \Vars::offsetUnset()

Implements ArrayAccess::offsetUnset().

File

./vars.module, line 222
Implement an API to handle persistent variables.

Class

Vars
@file Implement an API to handle persistent variables.

Code

public function offsetUnset($offset) {
  $this
    ->deleteVariables(array(
    $offset,
  ));
}