You are here

function access_filter_ensure_admin_paths_cache in Access Filter 7

Ensure cache data of admin paths.

Parameters

bool $reset: TRUE to reset admin paths cache.

3 calls to access_filter_ensure_admin_paths_cache()
access_filter_init in ./access_filter.module
Implements hook_init().
access_filter_modules_disabled in ./access_filter.module
Implements hook_modules_disabled().
access_filter_modules_enabled in ./access_filter.module
Implements hook_modules_enabled().

File

./access_filter.module, line 195
Allows users to manage access filters.

Code

function access_filter_ensure_admin_paths_cache($reset = FALSE) {
  $admin_paths_cache = cache_get('access_filter_admin_paths');
  if ($reset || !$admin_paths_cache) {
    cache_set('access_filter_admin_paths', path_get_admin_paths());
  }
}