function contact_category_delete_form

contact_category_delete_form($form, &$form_state, array $contact)

Form constructor for the contact category deletion form.

Parameters

$contact: Array describing the contact category to be deleted. See the documentation of contact_category_edit_form() for the recognized keys.

See also

contact_menu()

contact_category_delete_form_submit()

File

modules/contact/contact.admin.inc, line 198
Admin page callbacks for the Contact module.

Code

function contact_category_delete_form($form, &$form_state, array $contact) {
  $form['contact'] = array(
    '#type' => 'value',
    '#value' => $contact,
  );

  return confirm_form(
  $form, 
  t('Are you sure you want to delete %category?', array('%category' => $contact['category'])), 
  'admin/structure/contact', 
  t('This action cannot be undone.'), 
  t('Delete'), 
  t('Cancel')
  );
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!contact!contact.admin.inc/function/contact_category_delete_form/7.x