Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-7850

Move the post hooks in the DAO

    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+

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              xavier xavier dutoit
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: