function og_confirm_unsubscribe in Organic groups 6
Same name and namespace in other branches
- 5.8 og.module \og_confirm_unsubscribe()
- 5 og.module \og_confirm_unsubscribe()
- 5.2 og.module \og_confirm_unsubscribe()
- 5.3 og.module \og_confirm_unsubscribe()
- 5.7 og.module \og_confirm_unsubscribe()
- 6.2 og.pages.inc \og_confirm_unsubscribe()
Confirm og unsubscription form
File
- ./
og.module, line 1084
Code
function og_confirm_unsubscribe($form_state, $group_node, $account) {
$form['group_node'] = array(
'#type' => 'value',
'#value' => $group_node,
);
$form['account'] = array(
'#type' => 'value',
'#value' => $account,
);
return confirm_form($form, t('Are you sure you want to remove !name from the group %title?', array(
'!name' => theme('username', $account),
'%title' => $group_node->title,
)), 'og/users/' . $group_node->nid, ' ', t('Remove'), t('Cancel'));
}