function simplenews_admin_users_delete in Simplenews 5
Forms API callback; delete user subscription form. Form to delete user from all newsletters.
1 string reference to 'simplenews_admin_users_delete'
- simplenews_menu in ./
simplenews.module - Implementation of hook_menu().
File
- ./
simplenews.module, line 2454
Code
function simplenews_admin_users_delete($snid = NULL) {
if (!isset($snid)) {
drupal_not_found();
return;
}
$subscription = simplenews_get_subscription($snid);
$form = array();
$form['snid'] = array(
'#type' => 'value',
'#value' => $snid,
);
return confirm_form($form, t('Are you sure you want to remove %mail from all newsletter subscription lists?', array(
'%mail' => $subscription->mail,
)), 'admin/content/newsletters/users', t('This action will remove %mail from all newsletter subscription lists. To unsubscribe this user from a particular newsletter, press Cancel and edit this user.', array(
'%mail' => $subscription->mail,
)), t('Delete'), t('Cancel'));
}