function og_ui_confirm_unsubscribe in Organic groups 7
Same name and namespace in other branches
- 7.2 og_ui/og_ui.pages.inc \og_ui_confirm_unsubscribe()
Confirm unsubscribe form.
1 string reference to 'og_ui_confirm_unsubscribe'
- og_ui_unsubscribe in og_ui/
og_ui.pages.inc - Confirm OG unsubscription form.
File
- og_ui/
og_ui.pages.inc, line 207 - Page callbacks for Group module.
Code
function og_ui_confirm_unsubscribe($form, &$form_state, $group, $account) {
$form['group'] = array(
'#type' => 'value',
'#value' => $group,
);
$form['account'] = array(
'#type' => 'value',
'#value' => $account,
);
$label = og_label($group->gid);
return confirm_form($form, t('Are you sure you want to unsubscribe from the group %title?', array(
'%title' => $label,
)), "{$group->entity_type}/{$group->etid}", ' ', t('Remove'), t('Cancel'));
}