create TwingleProject.sync

This commit is contained in:
Marc Michalsky forumZFD 2021-01-25 17:01:16 +01:00
parent b9175fa936
commit 279d6e6576
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9
3 changed files with 492 additions and 197 deletions

View file

@ -43,8 +43,13 @@ function twinglecampaign_civicrm_postSave_civicrm_campaign($dao) {
}
}
/**
* This callback function synchronizes a recently updated TwingleProject campaign
* @param $campaign_id
* @throws \CiviCRM_API3_Exception
*/
function twinglecampaign_postSave_callback($campaign_id) {
civicrm_api3('TwingleSync', 'sync', ['id' => $campaign_id]);
civicrm_api3('TwingleProject', 'sync', ['id' => $campaign_id]);
}
/**