You are here

function variable_realm_reset in Variable 7

Same name and namespace in other branches
  1. 7.2 variable_realm/variable_realm.module \variable_realm_reset()

Reset realms, deleting currently set ones

If no parameters passed, it will reset global variables to original values

File

variable_realm/variable_realm.module, line 443
Variable API module - Realms

Code

function variable_realm_reset($realms = array()) {
  $status =& drupal_static('variable_realm_status');

  // We need at least some value for the global realm
  $status = $realms + array(
    'global',
    'default',
  );
  variable_realm_rebuild();
}