function og_confirm_subscribe in Organic groups 5
Same name and namespace in other branches
- 5.8 og.module \og_confirm_subscribe()
- 5.2 og.module \og_confirm_subscribe()
- 5.3 og.module \og_confirm_subscribe()
- 5.7 og.module \og_confirm_subscribe()
- 6.2 og.pages.inc \og_confirm_subscribe()
- 6 og.module \og_confirm_subscribe()
Confirm og membership form
1 string reference to 'og_confirm_subscribe'
- og_subscribe in ./
og.module
File
- ./
og.module, line 722
Code
function og_confirm_subscribe($gid, $node, $account) {
$form['gid'] = array(
'#type' => 'value',
'#value' => $gid,
);
$form['account'] = array(
'#type' => 'value',
'#value' => $account,
);
if ($node->og_selective == OG_MODERATED) {
$form['request'] = array(
'#type' => 'textarea',
'#title' => t('Additional details'),
'#description' => t('Add any detail which will help an administrator decide whether to approve or deny your membership request.'),
);
}
return confirm_form($form, t('Are you sure you want to join the group %title?', array(
'%title' => $node->title,
)), 'node/' . $node->nid, ' ', t('Join'), t('Cancel'));
}