function hook_og_default_roles_alter in Organic groups 7
Same name and namespace in other branches
- 7.2 og.api.php \hook_og_default_roles_alter()
Alter the default roles.
The anonymous and authenticated member roles are not alterable.
Parameters
$roles: Array with the default roles name.
1 invocation of hook_og_default_roles_alter()
- og_get_default_roles in ./
og.module - Get arary of default roles, keyed by their declaring module.
File
- ./
og.api.php, line 55 - Hooks provided by the Organic groups module.
Code
function hook_og_default_roles_alter(&$roles) {
// Remove a default role.
unset($roles['super admin']);
}