You are here

function constant_contact_delete_list_form in Constant Contact 6.3

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

delete a contact list

1 string reference to 'constant_contact_delete_list_form'
constant_contact_delete_list in ./admin.lists.inc
delete a contact list

File

./admin.lists.inc, line 140

Code

function constant_contact_delete_list_form($form, $formstate) {
  $id = isset($formstate['id']) ? $formstate['id'] : 0;
  $form = array();
  $form['#redirect'] = 'admin/settings/constant_contact/lists';
  $form['id'] = array(
    '#type' => 'value',
    '#value' => $id,
  );
  $form['cancel'] = array(
    '#type' => 'submit',
    '#value' => t('Cancel'),
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Continue'),
  );
  return $form;
}