You are here

function mailchimp_campaign_send_form_submit in Mailchimp 7.3

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

Submit handler for mailchimp_campaign_delete_list_form().

File

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

Code

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