function contact_category_delete_form

Page callback: Form constructor for the contact category deletion form.

Parameters

Drupal\contact\Plugin\Core\Entity\Category $category: The contact category to be deleted.

See also

contact_menu()

contact_category_delete_form_submit()

Related topics

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

File

drupal/core/modules/contact/contact.admin.inc, line 64
Admin page callbacks for the Contact module.

Code

function contact_category_delete_form($form, &$form_state, Category $category) {
  $form_state['contact_category'] = $category;
  $form['id'] = array(
    '#type' => 'value',
    '#value' => $category
      ->id(),
  );
  return confirm_form($form, t('Are you sure you want to delete %label?', array(
    '%label' => $category
      ->label(),
  )), 'admin/structure/contact', t('This action cannot be undone.'), t('Delete'));
}