You are here

function access_scheme_static_reset in Access Control Kit 7

Clear all static cache variables for access schemes.

Parameters

array $ids: An array of ids to reset in the entity controller cache.

2 calls to access_scheme_static_reset()
AccessSchemeEntityController::delete in ./access_scheme_entity_controller.inc
Deletes an access scheme from the database.
AccessSchemeEntityController::save in ./access_scheme_entity_controller.inc
Saves an access scheme to the database.

File

./access.module, line 438
The access control kit module.

Code

function access_scheme_static_reset($ids = NULL) {
  drupal_static_reset('access_scheme_names');
  drupal_static_reset('access_scheme_machine_name_load');
  entity_get_controller('access_scheme')
    ->resetCache($ids);
}