function ginvite_user_is_invited in Group 7
Check whether a user has a pending group invitation.
Parameters
Group $group: The group the invitation is for.
object $account: The user the invitation is for.
GroupMembership|false $group_membership: The group membership object to check for the invitation.
Return value
bool Whether the user has an invitation.
1 string reference to 'ginvite_user_is_invited'
- ginvite_group_membership_action_info in modules/
ginvite/ ginvite.group.inc - Implements hook_group_membership_action_info().
File
- modules/
ginvite/ ginvite.group.inc, line 101 - Hook implementations for the Group module.
Code
function ginvite_user_is_invited(Group $group, $account, $group_membership) {
return !empty($group_membership) && $group_membership->status == 'invited';
}