function simplenews_confirm_removal_form_submit in Simplenews 5
Same name and namespace in other branches
- 6.2 includes/simplenews.subscription.inc \simplenews_confirm_removal_form_submit()
- 6 simplenews.subscription.inc \simplenews_confirm_removal_form_submit()
- 7.2 includes/simplenews.subscription.inc \simplenews_confirm_removal_form_submit()
- 7 includes/simplenews.subscription.inc \simplenews_confirm_removal_form_submit()
Forms API callback; handles form submission for a user confirming unsubscribe request.
File
- ./
simplenews.module, line 2685
Code
function simplenews_confirm_removal_form_submit($form_id, $form_values) {
simplenews_unsubscribe_user($form_values['mail'], $form_values['newsletter']->tid, FALSE);
drupal_set_message(t('%user was successfully removed from the %newsletter subscription list.', array(
'%user' => $form_values['mail'],
'%newsletter' => $form_values['newsletter']->name,
)));
return '';
}