You are here

function pardot_admin_form in Pardot Integration 7.2

Same name and namespace in other branches
  1. 6 pardot.admin.inc \pardot_admin_form()
  2. 7 pardot.admin.inc \pardot_admin_form()

Form constructor for general pardot settings.

2 string references to 'pardot_admin_form'
pardot_menu in ./pardot.module
Implements hook_menu().
pardot_webform_form_alter in pardot_webform/pardot_webform.module
Implements hook_form_alter().

File

./pardot.admin.inc, line 12
Admin forms.

Code

function pardot_admin_form() {
  $form = array();
  $form['pardot_a_id'] = array(
    '#title' => t('Pardot account id'),
    '#type' => 'textfield',
    '#description' => t('The value show in the pardot demo script for piAId. eg. if the script has piAId = "1001"; this field should be 1001'),
    '#default_value' => variable_get('pardot_a_id', ''),
    '#weight' => -2,
  );
  $form['pardot_c_id'] = array(
    '#title' => t('Default Pardot campaign id'),
    '#type' => 'textfield',
    '#description' => t('The value show in the pardot demo script for piCId. eg. if the script has piCId = "1001"; this field should be 1001'),
    '#default_value' => variable_get('pardot_c_id', ''),
    '#weight' => -1,
  );

  // Add tracking visibility settings.
  $form[] = automate_form_tracking('pardot');
  return system_settings_form($form);
}