function _role_normalize in Shibboleth Authentication 5.3
2 calls to _role_normalize()
- shib_auth_edit_rule_submit in ./
shib_auth_admin.inc - Submit the edited rule.
- shib_auth_new_rule_form_submit in ./
shib_auth_admin.inc - New rule add submit implementation
File
- ./
shib_auth_admin.inc, line 255 - Generate the administration form of the Shibboleth authentication module
Code
function _role_normalize($role_id) {
$user_role = user_roles(TRUE);
$roles = array();
foreach ($role_id as $key => $role_key) {
if ($role_key !== 0) {
$roles[$role_key] = $user_role[$role_key];
}
}
return $roles;
}