function crm_core_contact_delete in CRM Core 7
Deletes a single contact record.
The wrapper for delete() method of 'crm_core_contact' controller.
Parameters
int $contact_id: The contact id.
Return value
TRUE or throw exception and write it to watchdog.
1 call to crm_core_contact_delete()
- crm_core_contact_ui_delete_form_submit in modules/
crm_core_contact_ui/ crm_core_contact_ui.pages.inc - Submit callback for crm_core_contact_ui_delete_form().
1 string reference to 'crm_core_contact_delete'
- crm_core_contact_services_resources in modules/
crm_core_contact/ crm_core_contact.module - Implements hook_services_resources().
File
- modules/
crm_core_contact/ crm_core_contact.module, line 849 - Provides default CRM Core Contact entities and the ability to create more.
Code
function crm_core_contact_delete($contact_id) {
return crm_core_contact_delete_multiple(array(
$contact_id,
));
}