function pardot_admin_campaign_delete_submit in Pardot Integration 7
Same name and namespace in other branches
- 6 pardot.admin-campaign.inc \pardot_admin_campaign_delete_submit()
- 7.2 pardot.admin-campaign.inc \pardot_admin_campaign_delete_submit()
Form submission handler for pardot_admin_campaign_delete().
File
- ./
pardot.admin-campaign.inc, line 195 - Admin campaign form.
Code
function pardot_admin_campaign_delete_submit($form, &$form_state) {
$campaign = $form_state['build_info']['args'][0];
db_delete('pardot_campaign')
->condition('campaign_id', $campaign->campaign_id)
->execute();
$form_state['redirect'] = 'admin/config/services/pardot/campaign';
}