You are here

function mailchimp_campaign_delete_form_submit in Mailchimp 7.4

Same name and namespace in other branches
  1. 7.5 modules/mailchimp_campaign/includes/mailchimp_campaign.admin.inc \mailchimp_campaign_delete_form_submit()
  2. 7.2 modules/mailchimp_campaign/mailchimp_campaign.admin.inc \mailchimp_campaign_delete_form_submit()
  3. 7.3 modules/mailchimp_campaign/includes/mailchimp_campaign.admin.inc \mailchimp_campaign_delete_form_submit()

Submit handler for mailchimp_campaign_delete_list_form().

File

modules/mailchimp_campaign/includes/mailchimp_campaign.admin.inc, line 630
Administration pages for mailchimp_campaign module.

Code

function mailchimp_campaign_delete_form_submit($form, &$form_state) {
  $campaign = $form_state['campaign'];
  if (mailchimp_campaign_delete_campaign($campaign->mc_campaign_id)) {
    drupal_set_message(t('Campaign %name has been deleted.', array(
      '%name' => $campaign
        ->label(),
    )));
  }
  drupal_goto('admin/config/services/mailchimp/campaigns');
}