function og_confirm_subscribe in Organic groups 6.2
Same name and namespace in other branches
- 5.8 og.module \og_confirm_subscribe()
- 5 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 og.module \og_confirm_subscribe()
Confirm og membership form
1 string reference to 'og_confirm_subscribe'
- og_subscribe in ./
og.pages.inc
File
- ./
og.pages.inc, line 321 - Page callbacks for Organic groups.
Code
function og_confirm_subscribe($form_state, $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.'),
);
$submit_label = t('Request membership');
}
else {
$form['request'] = array(
'#type' => 'value',
'#value' => '',
);
$submit_label = t('Join');
}
// Set the cancel destination, checking for an existing destination in the URL.
$destination = isset($_GET['destination']) ? urldecode($_GET['destination']) : 'node/' . $node->nid;
return confirm_form($form, t('Are you sure you want to join the group %title?', array(
'%title' => $node->title,
)), $destination, ' ', $submit_label, t('Cancel'));
}