You are here

function pardot_admin_campaign_edit in Pardot Integration 6

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

Form callback for editing campaign entries.

1 string reference to 'pardot_admin_campaign_edit'
pardot_menu in ./pardot.module
Implementation of hook_menu().

File

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

Code

function pardot_admin_campaign_edit($form_state, $campaign) {
  $form = array();
  $form['campaign_id'] = array(
    '#type' => 'value',
    '#value' => $campaign->campaign_id,
  );
  $form['name'] = array(
    '#title' => t('Campaign name'),
    '#type' => 'textfield',
    '#default_value' => $campaign->name,
    '#description' => t('A short descriptive name for administration purposes. Can be the same as the campaign name in Pardot but not required.'),
  );
  $form['paths'] = array(
    '#title' => t('Paths'),
    '#type' => 'textarea',
    '#wysiwyg' => FALSE,
    '#default_value' => $campaign->paths,
    '#description' => t("Enter one page per line as Drupal paths. The '*' character is a wildcard. Example paths are blog for the blog page and blog/* for every personal blog. <front> is the front page."),
  );
  $form['save'] = array(
    '#type' => 'submit',
    '#value' => t('Save'),
  );
  return $form;
}