You are here

function constant_contact_add_list_form in Constant Contact 7.3

Same name and namespace in other branches
  1. 6.3 admin.lists.inc \constant_contact_add_list_form()
  2. 6.2 contactlists.admin.inc \constant_contact_add_list_form()

Form builder for adding a new contact list.

1 string reference to 'constant_contact_add_list_form'
constant_contact_add_list in ./admin.lists.inc
Add a new contact list.

File

./admin.lists.inc, line 190
Manage contact lists.

Code

function constant_contact_add_list_form() {
  $form = array();

  // Add account settings.
  $form['list'] = array(
    '#type' => 'textfield',
    '#title' => t('List Name'),
    '#description' => t('Enter a name for the new contact list'),
    '#default_value' => '',
    '#size' => 60,
  );

  // Sort Order.
  $form['sort_order'] = array(
    '#type' => 'textfield',
    '#title' => t('Sort Order'),
    '#description' => t('Enter the position this list will appear at'),
    '#default_value' => 99,
    '#size' => 5,
  );
  $form['#redirect'] = 'admin/config/services/constant_contact/lists';
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Save'),
  );
  return $form;
}