function og_ui_confirm_unsubscribe in Organic groups 7.2
Same name and namespace in other branches
- 7 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 234 - Page callbacks for Organic groups module.
Code
function og_ui_confirm_unsubscribe($form, &$form_state, $group_type, $group) {
$form['group_type'] = array(
'#type' => 'value',
'#value' => $group_type,
);
$form['group'] = array(
'#type' => 'value',
'#value' => $group,
);
$label = entity_label($group_type, $group);
$url = entity_uri($group_type, $group);
return confirm_form($form, t('Are you sure you want to unsubscribe from the group %title?', array(
'%title' => $label,
)), $url, NULL, t('Unsubscribe'), t('Cancel'));
}