crm_core.api.php 730 Bytes
Newer Older
1 2 3 4
<?php

/**
 * @file
5 6
 * Hooks provided by the CRM Core module.
 */
7

8 9 10 11 12
/**
 * @addtogroup hooks
 * @{
 */

13
/**
14
 * Use a custom label for a contact of bundle CONTACT_BUNDLE.
15 16
 */
function crm_core_contact_CONTACT_BUNDLE_label($entity) {
17 18
  // No example.
}
19 20 21 22

/**
 * Respond to CRM Core contacts being merged.
 *
corvus_ch's avatar
corvus_ch committed
23
 * @param \Drupal\crm_core_contact\Entity\Contact $master_contact
24 25 26 27 28 29
 *   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()
 */
corvus_ch's avatar
corvus_ch committed
30
function hook_crm_core_contact_merge_contacts(Drupal\crm_core_contact\Entity\Contact $master_contact, array $merged_contacts) {
31 32 33 34 35 36

}

/**
 * @} End of "addtogroup hooks".
 */