You are here

function _subscriptions_mail_purge_queue_form in Subscriptions 6

Same name and namespace in other branches
  1. 7 subscriptions_mail.module \_subscriptions_mail_purge_queue_form()
  2. 2.0.x subscriptions_mail/subscriptions_mail.module \_subscriptions_mail_purge_queue_form()

Form builder for the purge Subscriptions queue confirmation form.

1 string reference to '_subscriptions_mail_purge_queue_form'
subscriptions_mail_menu in ./subscriptions_mail.module
Implementation of hook_menu().

File

./subscriptions_mail.module, line 77
Subscriptions module mail gateway.

Code

function _subscriptions_mail_purge_queue_form(&$form_state) {
  $form['#submit'][] = 'subscriptions_purge_queue';
  return confirm_form($form, t('Are you sure you want to purge the !Module queue?', array(
    '!Module' => 'Subscriptions',
  )), array(
    'path' => $_GET['destination'],
    'fragment' => 'edit-purge-queue',
  ), NULL, t('Purge the queue'));
}