You are here

function contact_category_delete_form in Drupal 7

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()

1 string reference to 'contact_category_delete_form'
contact_menu in modules/contact/contact.module
Implements hook_menu().

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'));
}