public function Vars::offsetSet in Variable API 7
Same name and namespace in other branches
- 6.2 vars.module \Vars::offsetSet()
- 6 vars.module \Vars::offsetSet()
- 7.2 vars.classes.inc \Vars::offsetSet()
Implements ArrayAccess::offsetSet().
File
- ./
vars.module, line 213 - Implement an API to handle persistent variables.
Class
- Vars
- @file Implement an API to handle persistent variables.
Code
public function offsetSet($offset, $value) {
if (!empty($offset)) {
variable_set($offset, $value);
}
}