You are here

function contact_category_delete_form in Contact 6.2

Same name and namespace in other branches
  1. 7.2 contact.admin.inc \contact_category_delete_form()

Form builder for deleting a contact category.

See also

contact_category_delete_form_submit()

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

File

./contact.admin.inc, line 152
Admin page callbacks for the contact module.

Code

function contact_category_delete_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/build/contact', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}