You are here

function group_membership_request_form_access in Group 7

Access callback: Whether the user can request a membership through a form.

See also

GroupMembershipUiController::hook_menu()

1 string reference to 'group_membership_request_form_access'
GroupMembershipUIController::hook_menu in classes/group_membership.ui_controller.inc
Provides definitions for implementing hook_menu().

File

./group.router.inc, line 105
Contains all router functions for the Group module.

Code

function group_membership_request_form_access(Group $group, $account) {
  module_load_include('inc', 'group', 'group.group');
  return group_user_can_request_membership_form($group, $account, $group
    ->getMember($account->uid));
}