function group_group_membership_action_info in Group 7
Implements hook_group_membership_action_info().
File
- ./
group.group.inc, line 338 - Hook implementations for the Group module.
Code
function group_group_membership_action_info() {
$info['group_join'] = array(
'label' => t('Join'),
'description' => t('This group is free for anyone to join'),
'access callback' => 'group_user_can_join',
'action callback' => 'group_user_join',
);
$info['group_join_form'] = array(
'label' => t('Join'),
'description' => t('Fill out your details to join this group'),
'access callback' => 'group_user_can_join_form',
'action callback' => 'group_user_join_form',
);
$info['group_request_membership'] = array(
'label' => t('Request membership'),
'description' => t('This group requires admin approval to join'),
'access callback' => 'group_user_can_request_membership',
'action callback' => 'group_user_request_membership',
);
$info['group_request_membership_form'] = array(
'label' => t('Request membership'),
'description' => t('Fill out a membership request'),
'access callback' => 'group_user_can_request_membership_form',
'action callback' => 'group_user_request_membership_form',
);
$info['group_leave'] = array(
'label' => t('Leave'),
'description' => t('You are member of this group'),
'access callback' => 'group_user_can_leave',
'action callback' => 'group_user_leave',
);
return $info;
}