contact_category_delete_form

Versions
mediamosa-21
contact_category_delete_form($form, &$form_state, array $contact)

Form builder for deleting a contact category.

See also

contact_category_delete_form_submit()

Code

modules/contact/contact.admin.inc, line 177

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