function group_membership_join_form_access in Group 7
Access callback: Whether the user can join a group through a form.
See also
GroupMembershipUiController::hook_menu()
1 string reference to 'group_membership_join_form_access'
- GroupMembershipUIController::hook_menu in classes/
group_membership.ui_controller.inc - Provides definitions for implementing hook_menu().
File
- ./
group.router.inc, line 95 - Contains all router functions for the Group module.
Code
function group_membership_join_form_access(Group $group, $account) {
module_load_include('inc', 'group', 'group.group');
return group_user_can_join_form($group, $account, $group
->getMember($account->uid));
}