function notifications_form_unsubscribe_confirm in Notifications 5
Same name and namespace in other branches
- 6.4 notifications.pages.inc \notifications_form_unsubscribe_confirm()
- 6 notifications.pages.inc \notifications_form_unsubscribe_confirm()
- 6.2 notifications.pages.inc \notifications_form_unsubscribe_confirm()
- 6.3 notifications.pages.inc \notifications_form_unsubscribe_confirm()
Form for unsubscription confirmation
1 string reference to 'notifications_form_unsubscribe_confirm'
- notifications_page_unsubscribe in ./
notifications.admin.inc - Menu callback add subscription
File
- ./
notifications.admin.inc, line 658
Code
function notifications_form_unsubscribe_confirm($subscription) {
// Pass on subscription values
$form['subscription'] = array(
'#type' => 'value',
'#value' => $subscription,
);
// The names will be added here
notifications_module_invoke('names', $subscription);
$form['info'] = array(
'#type' => 'item',
'#title' => t('!type subscription to', array(
'!type' => $subscription->type_name,
)),
'#value' => theme('item_list', $subscription->names),
);
$form['confirm'] = array(
'#type' => 'submit',
'#value' => t('Unsubscribe'),
);
$form['cancel'] = array(
'#type' => 'submit',
'#value' => t('Cancel'),
);
return $form;
}