function secure_permissions_secure_permissions_roles in Secure Permissions 6
Same name and namespace in other branches
- 7.2 secure_permissions.module \secure_permissions_secure_permissions_roles()
- 7 secure_permissions.module \secure_permissions_secure_permissions_roles()
Implement hook_secure_permissions_roles().
Defines the roles available on a site.
Important: If you have custom roles on your site, you must implement this hook to retain those roles.
File
- ./
secure_permissions.module, line 249 - Secure Permissions module file.
Code
function secure_permissions_secure_permissions_roles() {
$roles = array(
'anonymous user',
'authenticated user',
);
if (secure_permissions_variable('secure_permissions_administrative_role')) {
$roles[] = secure_permissions_variable('secure_permissions_role_name');
}
return $roles;
}