You are here

function _variable_store_reset in Variable 7.2

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

Reset caches and static variables.

1 call to _variable_store_reset()
variable_store_delete_all in variable_store/variable_store.module
Delete realm variable or full realm from store.

File

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

Code

function _variable_store_reset() {
  $store =& drupal_static('variable_store', array());
  foreach ($store as $realm => &$realm_store) {
    foreach (array_keys($realm_store) as $key) {
      $realm_store[$key] = NULL;
    }
  }
  cache_clear_all('variable:', 'cache_bootstrap', TRUE);
}