function hook_og_role_grant

7.x-2.x og.api.php hook_og_role_grant($entity_type, $gid, $uid, $rid)
7.x-1.x og.api.php hook_og_role_grant($gid, $uid, $rid)

Allow modules to react upon a role being granted.

Parameters

$entity_type: The entity type of the group in which a role has been granted.

$gid: The group id of the group in which a role has been granted.

$uid: The user id of the user to whom a role has been granted.

$rid: The OG role id being granted to the user.

1 invocation of hook_og_role_grant()
og_role_grant in og/og.module
Grant a group role to a user.

File

og/og.api.php, line 107
Hooks provided by the Organic groups module.

Code

function hook_og_role_grant($entity_type, $gid, $uid, $rid) {
}