function notifications_form_unsubscribe_confirm_submit in Notifications 5
Same name and namespace in other branches
- 6.4 notifications.pages.inc \notifications_form_unsubscribe_confirm_submit()
- 6 notifications.pages.inc \notifications_form_unsubscribe_confirm_submit()
- 6.2 notifications.pages.inc \notifications_form_unsubscribe_confirm_submit()
- 6.3 notifications.pages.inc \notifications_form_unsubscribe_confirm_submit()
Process form submission
File
- ./
notifications.admin.inc, line 680
Code
function notifications_form_unsubscribe_confirm_submit($form_id, $form_values) {
$subscription = $form_values['subscription'];
switch ($form_values['op']) {
case t('Unsubscribe'):
notifications_delete_subscription($subscription->sid);
drupal_set_message(t('Your subscription has been removed.'));
break;
case t('Cancel'):
// Do nothing, not worth showing a message, just get back
break;
}
return 'user/' . $subscription->uid . '/notifications';
}