function group_user_can_join_form in Group 7
Check whether a user can join a group through a form.
Parameters
Group $group: The group to check access for.
object $account: The user to check access for.
GroupMembership|false $group_membership: The group membership if one exists already.
Return value
bool Whether the user can join the group.
1 call to group_user_can_join_form()
- group_membership_join_form_access in ./
group.router.inc - Access callback: Whether the user can join a group through a form.
1 string reference to 'group_user_can_join_form'
- group_group_membership_action_info in ./
group.group.inc - Implements hook_group_membership_action_info().
File
- ./
group.group.inc, line 420 - Hook implementations for the Group module.
Code
function group_user_can_join_form(Group $group, $account, $group_membership) {
return empty($group_membership) && group_access('join group form', $group, $account);
}