public function Vars::offsetSet in Variable API 6
Same name and namespace in other branches
- 6.2 vars.module \Vars::offsetSet()
- 7.2 vars.classes.inc \Vars::offsetSet()
- 7 vars.module \Vars::offsetSet()
Implements ArrayAccess::offsetSet().
File
- ./
vars.module, line 215 - 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);
}
}