Skip to content

hook_civicrm_copy

Summary

This hook is called after a CiviCRM object (Event, ContributionPage, Profile) has been copied.

Definition

hook_civicrm_copy($objectName, &$object, $original_id = NULL)

Parameters

  • $objectName - the name of the object that is being copied (Event, ContributionPage, UFGroup)
  • $object - reference to the copied object
  • $original_id - Entitiy ID of the original entity

Returns

  • null

Availability

  • The original_id parameter was added in CiviCRM 5.65