function contact_category_delete_form
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_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
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'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.