You are here

function pardot_admin_campaign_edit_submit in Pardot Integration 6

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

File

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

Code

function pardot_admin_campaign_edit_submit($form, &$form_state) {
  $campaign = (object) $form_state['values'];
  drupal_write_record('pardot_campaign', $campaign, array(
    'campaign_id',
  ));
  $form_state['redirect'] = 'admin/settings/pardot/campaign';
}