Page callback: Form constructor for the contact category deletion form.
Drupal\contact\Plugin\Core\Entity\Category $category: The contact category to be deleted.
contact_category_delete_form_submit()
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'));
}