The source project of this merge request has been removed.
Update hook_civicrm_entityTypes.md
Merge Request Description:
This merge request corrects a typo in the hook_civicrm_entityTypes
documentation where hook_civicrm_apiWrappers()
was incorrectly referenced alongside hook_civicrm_entityTypes()
. The incorrect mention of hook_civicrm_apiWrappers()
has been removed to ensure accuracy in the documentation for hook_civicrm_entityTypes()
within CiviCRM.
Additionally, the provided code snippet:
function apilogging_civicrm_entityTypes(&$entityTypes) {
$entityTypes['CRM_Contact_DAO_Contact']['fields_callback'][]
= function ($class, &$fields) {
unset($fields['created_date']['export']);
};
has been found to cause an error, as detailed in this issue. Upon testing with my custom extension and the latest CiviCRM setup, I confirmed the issue persists. Therefore, I have updated the code to the following, which resolves the error and functions correctly:
function apilogging_civicrm_entityTypes(&$entityTypes) {
$entityTypes['Contact']['fields_callback'][]
= function ($class, &$fields) {
unset($fields['created_date']['export']);
};
Please review these changes. Thank you.