Ejegg has submitted this change and it was merged.
Change subject: Split out contribution save hook
......................................................................
Split out contribution save hook
Bug: T122411
Change-Id: I2cd2b3a3ba876f1c84a4b35c3c1df55cf2981578
---
M sites/all/modules/wmf_civicrm/wmf_civicrm.module
1 file changed, 6 insertions(+), 3 deletions(-)
Approvals:
Ejegg: Looks good to me, approved
jenkins-bot: Verified
diff --git a/sites/all/modules/wmf_civicrm/wmf_civicrm.module
b/sites/all/modules/wmf_civicrm/wmf_civicrm.module
index 6d684dc..bf0feb5 100644
--- a/sites/all/modules/wmf_civicrm/wmf_civicrm.module
+++ b/sites/all/modules/wmf_civicrm/wmf_civicrm.module
@@ -2092,10 +2092,13 @@
* Implementation of hook_civicrm_post, used to update contribution_extra
fields
* and wmf_donor rollup fields.
*/
-function wmf_civicrm_civicrm_post( $op, $type, $id, &$contribution ) {
- if ( $type !== 'Contribution' ) {
- return;
+function wmf_civicrm_civicrm_post( $op, $type, $id, &$entity ) {
+ if ( $type === 'Contribution' ) {
+ wmf_civicrm_civicrm_post_Contribution( $op, $id, $entity );
}
+}
+
+function wmf_civicrm_civicrm_post_Contribution( $op, $id, &$contribution ) {
switch ( $op ) {
case 'create':
case 'edit':
--
To view, visit https://gerrit.wikimedia.org/r/281889
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I2cd2b3a3ba876f1c84a4b35c3c1df55cf2981578
Gerrit-PatchSet: 3
Gerrit-Project: wikimedia/fundraising/crm
Gerrit-Branch: master
Gerrit-Owner: Awight <[email protected]>
Gerrit-Reviewer: Cdentinger <[email protected]>
Gerrit-Reviewer: Ejegg <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits