Details
-
Type: Improvement
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.0.0
-
Fix Version/s: 4.1.0
-
Component/s: None
-
Labels:None
Description
http://forum.civicrm.org/index.php/topic,18896.0.html
instead of
RM_Utils_Hook::post( 'delete', 'Tag', $id, $tag );
CRM/Core/BAO/Tag.php: CRM_Utils_Hook::post( 'edit', 'Tag', $tag->id, $tag );
CRM/Core/BAO/Tag.php: CRM_Utils_Hook::post( 'create', 'Tag', null, $tag );
CRM/Core/BAO/EntityTag.php: CRM_Utils_Hook::post('create', 'EntityTag', $tagId, $object );
CRM/Core/BAO/EntityTag.php: CRM_Utils_Hook::post( 'delete', 'EntityTag', $tagId, $object );
Puting the pre and post into the CRM/Core/DAO.php (or generated automatically and in the DAO/Entity.php)
Benefit: that's there, always.
X+