You are here

function _subscriptions_mail_purge_queue_form in Subscriptions 2.0.x

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

Form builder for the purge Subscriptions queue confirmation form.

Parameters

array $form_state:

Return value

array

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

File

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

Code

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