function pardot_admin_campaign_edit in Pardot Integration 7
Same name and namespace in other branches
- 6 pardot.admin-campaign.inc \pardot_admin_campaign_edit()
- 7.2 pardot.admin-campaign.inc \pardot_admin_campaign_edit()
Form constructor for editing campaign entries.
See also
pardot_admin_campaign_edit_submit()
1 string reference to 'pardot_admin_campaign_edit'
- pardot_menu in ./
pardot.module - Implements hook_menu().
File
- ./
pardot.admin-campaign.inc, line 137 - Admin campaign form.
Code
function pardot_admin_campaign_edit($form, $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.", array(
'%front' => '<front>',
)),
);
$form['save'] = array(
'#type' => 'submit',
'#value' => t('Save'),
);
return $form;
}