function og_role_revoke_permissions in Organic groups 7
Same name and namespace in other branches
- 7.2 og.module \og_role_revoke_permissions()
Revoke permissions from a user role.
Parameters
$rid: The ID of a user role to alter.
$permissions: A list of permission names to revoke.
See also
user_role_change_permissions()
1 call to og_role_revoke_permissions()
- og_role_change_permissions in ./
og.module - Change permissions for a user role.
File
- ./
og.module, line 2869 - Enable users to create and manage groups with roles and permissions.
Code
function og_role_revoke_permissions($rid, array $permissions = array()) {
// Revoke permissions for the role.
db_delete('og_role_permission')
->condition('rid', $rid)
->condition('permission', $permissions, 'IN')
->execute();
og_invalidate_cache();
}