You are here

function pardot_admin_campaign_delete_submit in Pardot Integration 6

Same name and namespace in other branches
  1. 7.2 pardot.admin-campaign.inc \pardot_admin_campaign_delete_submit()
  2. 7 pardot.admin-campaign.inc \pardot_admin_campaign_delete_submit()

File

./pardot.admin-campaign.inc, line 150

Code

function pardot_admin_campaign_delete_submit($form, &$form_state) {
  db_query("DELETE FROM {pardot_campaign} WHERE campaign_id = '%s'", $form['#campaign_id']);
  $form_state['redirect'] = 'admin/settings/pardot/campaign';
}