function mailchimp_campaign_send_test_form in Mailchimp 7.3
Same name and namespace in other branches
- 7.5 modules/mailchimp_campaign/includes/mailchimp_campaign.admin.inc \mailchimp_campaign_send_test_form()
- 7.4 modules/mailchimp_campaign/includes/mailchimp_campaign.admin.inc \mailchimp_campaign_send_test_form()
Send test campaign form.
1 string reference to 'mailchimp_campaign_send_test_form'
- mailchimp_campaign_menu in modules/
mailchimp_campaign/ mailchimp_campaign.module - Implements hook_menu().
File
- modules/
mailchimp_campaign/ includes/ mailchimp_campaign.admin.inc, line 663 - Administration pages for mailchimp_campaign module.
Code
function mailchimp_campaign_send_test_form($form, &$form_state, MailChimpCampaign $campaign) {
$form_state['campaign'] = $campaign;
$form['recipients'] = array(
'#type' => 'textfield',
'#title' => t('Test recipients'),
'#size' => 100,
'#default_value' => isset($_SESSION['mailchimp_campaign_test']) ? $_SESSION['mailchimp_campaign_test'] : '',
'#description' => t('Enter one or more e-mail addresses separated by commas.'),
);
return confirm_form($form, t('Confirm test for %name?', array(
'%name' => $campaign
->label(),
)), 'admin/config/services/mailchimp/campaigns/' . $campaign->mc_campaign_id, t('This action will send a test message through MailChimp to the recipients specified above.'), t('Send test'));
}