You are here

function crm_core_contact_ui_delete_form in CRM Core 7

Form for deleting a contact.

1 string reference to 'crm_core_contact_ui_delete_form'
crm_core_contact_ui_menu in modules/crm_core_contact_ui/crm_core_contact_ui.module
Implements hook_menu().

File

modules/crm_core_contact_ui/crm_core_contact_ui.pages.inc, line 157

Code

function crm_core_contact_ui_delete_form($form, &$form_state, $contact) {
  $form['contact_id'] = array(
    '#type' => 'value',
    '#value' => $contact->contact_id,
  );
  return confirm_form($form, t("Are you sure want to delete '@name' contact?", array(
    '@name' => crm_core_contact_title($contact),
  )), 'crm-core/contact/' . $contact->contact_id, $description = NULL, $yes = t('Yes'), $no = t('No'));
}