You are here

crm_core.api.php in CRM Core 8.3

Same filename and directory in other branches
  1. 8 crm_core.api.php
  2. 8.2 crm_core.api.php
  3. 7 crm_core.api.php

Hooks provided by the CRM Core module.

File

crm_core.api.php
View 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

Namesort descending 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.