function access_access_scheme_load in Access Control Kit 7
Implements hook_access_scheme_load().
File
- ./
access.access.inc, line 89 - Access control kit API hook implementations to integrate with core modules.
Code
function access_access_scheme_load($schemes) {
// Get all roles, excluding "anonymous users" and "authenticated users."
$roles = user_roles(TRUE);
unset($roles[DRUPAL_AUTHENTICATED_RID]);
foreach ($schemes as $scheme) {
// Attach role information.
$scheme_roles = variable_get('access_scheme_roles_' . $scheme->machine_name, array());
$scheme->roles = array_intersect_assoc($roles, $scheme_roles);
}
}