You are here

function mailchimp_signup_signup_delete_form_submit in Mailchimp 7.3

Same name and namespace in other branches
  1. 7.5 modules/mailchimp_signup/includes/mailchimp_signup.admin.inc \mailchimp_signup_signup_delete_form_submit()
  2. 7.4 modules/mailchimp_signup/includes/mailchimp_signup.admin.inc \mailchimp_signup_signup_delete_form_submit()

Submit handler for mailchimp_signup_signup_delete_form().

File

modules/mailchimp_signup/includes/mailchimp_signup.admin.inc, line 313
mailchimp_signup module admin settings.

Code

function mailchimp_signup_signup_delete_form_submit($form, &$form_state) {
  $signup = $form_state['signup'];
  mailchimp_signup_delete_multiple(array(
    $signup
      ->identifier(),
  ));
  drupal_set_message(t('%name has been deleted.', array(
    '%name' => $signup
      ->label(),
  )));
  $form_state['redirect'] = 'admin/config/services/mailchimp/signup';
}