crm_core.api.php in CRM Core 8.3
Same filename and directory in other branches
Hooks provided by the CRM Core module.
File
crm_core.api.phpView source
<?php
/**
* @file
* Hooks provided by the CRM Core module.
*/
/**
* Use a custom label for a contact of bundle CONTACT_BUNDLE.
*/
function hook_crm_core_contact_CONTACT_BUNDLE_label($entity) {
// No example.
}
/**
* Respond to CRM Core contacts being merged.
*
* @param \Drupal\crm_core_contact\Entity\Individual|\Drupal\crm_core_contact\Entity\Organization $master_contact
* Contact to which data being merged.
* @param array $merged_contacts
* Keyed by contact ID array of contacts being merged.
*
* @see crm_core_contact_merge_contacts_action()
*/
function hook_crm_core_contact_merge_contacts($master_contact, array $merged_contacts) {
}
Functions
Name | Description |
---|---|
hook_crm_core_contact_CONTACT_BUNDLE_label | Use a custom label for a contact of bundle CONTACT_BUNDLE. |
hook_crm_core_contact_merge_contacts | Respond to CRM Core contacts being merged. |