You are here

function simplenews_admin_users_form in Simplenews 5

Same name and namespace in other branches
  1. 6 simplenews.subscription.inc \simplenews_admin_users_form()

Menu callback; handles the edit/delete subscription page and a subscription page for anonymous users.

1 string reference to 'simplenews_admin_users_form'
simplenews_menu in ./simplenews.module
Implementation of hook_menu().

File

./simplenews.module, line 2440

Code

function simplenews_admin_users_form($snid = NULL) {
  if (isset($snid) && $_POST['op'] == t('Delete')) {

    // Kill destination redirect.
    unset($_REQUEST['destination']);
    drupal_goto('admin/content/newsletters/users/delete/' . $snid);
  }
  return simplenews_subscription_manager_form($snid);
}