You are here

function variable_store in Variable 7.2

Same name and namespace in other branches
  1. 7 variable_store/variable_store.module \variable_store()

Get variable store

6 calls to variable_store()
VariableStoreRealmStore::variable_init in variable_store/variable_store.class.inc
Initialize realm.
VariableStoreTestCase::testVariableStoreAPI in variable_store/variable_store.test
Test that all core modules can be enabled, disabled and uninstalled.
variable_example_page_realm in variable_example/variable_example.module
Variable example realm page.
variable_store_del in variable_store/variable_store.module
Delete variable from db
variable_store_get in variable_store/variable_store.module
Get single variable from store

... See full list

4 string references to 'variable_store'
VariableStoreTestCase::setUp in variable_store/variable_store.test
Sets up a Drupal site for running functional and integration tests.
variable_store_delete_all in variable_store/variable_store.module
Delete realm variable or full realm from store.
variable_store_update_7000 in variable_store/variable_store.install
Reduce realm key field length so it can be used on the primary key
_variable_store_reset in variable_store/variable_store.module
Reset caches and static variables.

File

variable_store/variable_store.module, line 12
Variable API module - Database storage

Code

function &variable_store($realm, $key) {
  $variable_store =& drupal_static('variable_store');
  if (!isset($variable_store[$realm][$key])) {
    $variable_store[$realm][$key] = _variable_store_load($realm, $key);
  }
  return $variable_store[$realm][$key];
}