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

Add hook_civicrm_pre / post on Campaign

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.6
    • Fix Version/s: 4.6
    • Component/s: CiviCampaign, Core CiviCRM
    • Labels:
      None
    • Documentation Required?:
      Developer Doc

      Description

      I have several use case where i want information whenever a campaign is created / modified / deleted. I can use hook_civicrm_postProcess but it won't work if altering the campaign using the API.

      I think calling hook_civicrm_pre / hook_civicrm_post from CRM/Campaign/BAO/Campaign.php will solve the problem.

        Attachments

          Activity

            People

            • Assignee:
              samuelsov Samuel Vanhove
              Reporter:
              samuelsov Samuel Vanhove
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: