You are here

function _subscriptions_mail_submit_subscriptions_settings_form in Subscriptions 7

Same name and namespace in other branches
  1. 6 subscriptions_mail.admin.inc \_subscriptions_mail_submit_subscriptions_settings_form()
  2. 2.0.x subscriptions_mail/subscriptions_mail.admin.inc \_subscriptions_mail_submit_subscriptions_settings_form()

Submit handler for the Purge-the-queue button on the Subscriptions settings form.

_state

Parameters

array $form:

1 string reference to '_subscriptions_mail_submit_subscriptions_settings_form'
_subscriptions_mail_form_subscriptions_settings_form_alter in ./subscriptions_mail.admin.inc
Implementation of hook_form_alter().

File

./subscriptions_mail.admin.inc, line 114
Subscriptions module mail gateway (admin functions).

Code

function _subscriptions_mail_submit_subscriptions_settings_form(array $form, array &$form_state) {
  if ($form_state['values']['op'] == $form_state['values']['purge_queue']) {
    drupal_goto(SUBSCRIPTIONS_CONFIG_PATH . '/purge-queue', array(
      'query' => drupal_get_destination(),
    ));
  }
}