function variable_store_get in Variable 7
Same name and namespace in other branches
- 7.2 variable_store/variable_store.module \variable_store_get()
Get single variable from store
1 call to variable_store_get()
- VariableStoreTestCase::testVariableStoreAPI in variable_store/
variable_store.test - Test that all core modules can be enabled, disabled and uninstalled.
File
- variable_store/
variable_store.module, line 49 - Variable API module - Database storage
Code
function variable_store_get($realm, $key, $name, $default = NULL) {
if ($variables = variable_store($realm, $key)) {
return isset($variables[$name]) ? $variables[$name] : $default;
}
else {
return $default;
}
}