function mailchimp_campaign_delete_form in Mailchimp 7.4
Same name and namespace in other branches
- 7.5 modules/mailchimp_campaign/includes/mailchimp_campaign.admin.inc \mailchimp_campaign_delete_form()
- 7.2 modules/mailchimp_campaign/mailchimp_campaign.admin.inc \mailchimp_campaign_delete_form()
- 7.3 modules/mailchimp_campaign/includes/mailchimp_campaign.admin.inc \mailchimp_campaign_delete_form()
List deletion form.
1 string reference to 'mailchimp_campaign_delete_form'
- mailchimp_campaign_menu in modules/
mailchimp_campaign/ mailchimp_campaign.module - Implements hook_menu().
File
- modules/
mailchimp_campaign/ includes/ mailchimp_campaign.admin.inc, line 617 - Administration pages for mailchimp_campaign module.
Code
function mailchimp_campaign_delete_form($form, &$form_state, MailChimpCampaign $campaign) {
$form_state['campaign'] = $campaign;
return confirm_form($form, t('Are you sure you want to delete %name?', array(
'%name' => $campaign
->label(),
)), 'admin/config/services/mailchimp/campaigns/' . $campaign->mc_campaign_id, t('This action will delete both the Mailchimp campaign and Drupal entity and cannot be undone.'), t('Delete campaign'));
}