1 contact.admin.inc contact_category_delete_form($form, &$form_state, array $contact)

Form constructor for the contact category deletion form.

Parameters

array $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

core/modules/contact/contact.admin.inc, line 475
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')
  );
}