You are here

function config_perms_cache_rebuild in Custom Permissions 7.2

Same name and namespace in other branches
  1. 6.2 config_perms.module \config_perms_cache_rebuild()

Configure permission names for urls:

4 calls to config_perms_cache_rebuild()
config_perms_admin_form_submit in ./config_perms.admin.inc
Submit handler.
config_perms_install in ./config_perms.install
Implements hook_install().
config_perms_perms in ./config_perms.module
Load all permissions
config_perms_update_7201 in ./config_perms.install
Fix permissions that were incorrectly stored with escaped HTML characters.

File

./config_perms.module, line 37
Allows additional permissions to be created and managed through a administration form

Code

function config_perms_cache_rebuild() {
  if (module_exists('ctools')) {
    ctools_include('export');
    ctools_export_load_object_reset('config_perms');
  }
  $perms = config_perms_loadperms();
  cache_set('config_perms', $perms);
  return $perms;
}