You are here

function pardot_admin_campaign_delete in Pardot Integration 7

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

Form constructor for deleting campaign entries.

See also

pardot_admin_campaign_delete_submit()

1 string reference to 'pardot_admin_campaign_delete'
pardot_menu in ./pardot.module
Implements hook_menu().

File

./pardot.admin-campaign.inc, line 183
Admin campaign form.

Code

function pardot_admin_campaign_delete($form, &$form_state, $campaign) {
  $form = array();

  //$form['#campaign_id'] = $campaign->campaign_id;
  $description = t('Are you sure you want to delete campaign %campaign_id? These paths will no logger trigger unique campaigns in Pardot.', array(
    '%campaign_id' => $campaign->campaign_id,
  ));
  return confirm_form($form, t('Are you sure you want to delete this campaign?'), 'admin/config/services/pardot/campaign', $description, 'Delete');
}