You are here

function constant_contact_add_list_form in Constant Contact 6.3

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

Add a new contact list page in the admin function

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

File

./admin.lists.inc, line 204

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/settings/constant_contact/lists';
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Save'),
  );
  return $form;
}