function og_role_revoke_permissions

cis7 og.module og_role_revoke_permissions($rid, array $permissions = array())
cle7 og.module og_role_revoke_permissions($rid, array $permissions = array())
elmsmedia7 og.module og_role_revoke_permissions($rid, array $permissions = array())
icor7 og.module og_role_revoke_permissions($rid, array $permissions = array())
meedjum_blog7 og.module og_role_revoke_permissions($rid, array $permissions = array())
mooc7 og.module og_role_revoke_permissions($rid, array $permissions = array())

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()

user_role_grant_permissions()

2 calls to og_role_revoke_permissions()
og_features_permission_features_rebuild in sites/all/modules/ulmus/og/includes/og_features_permission.features.inc
Implements hook_features_rebuild().
og_role_change_permissions in sites/all/modules/ulmus/og/og.module
Change permissions for a user role.

File

sites/all/modules/ulmus/og/og.module, line 3138
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();
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.