Skip to main content
10 events
when toggle format what by license comment
May 29, 2017 at 0:41 comment added Norm Dressler Ok, nevermind -- the extension is now working. Very odd because it wasn't working earlier today. This means I can remove the triggers...
May 29, 2017 at 0:32 vote accept Norm Dressler
May 29, 2017 at 0:30 comment added Norm Dressler The above doesn't seem to work when I add a membership from the backend?
May 29, 2017 at 0:29 comment added Norm Dressler Ok, that is exactly what I'm doing but then checking to see what kind of post... function incrementrp_civicrm_post( $op, $objectName, $objectId, &$objectRef ) { if ($op == 'create' && $objectName == 'Membership') {
May 29, 2017 at 0:27 comment added Chris Burgess You use the same hook for both cases, and perform appropriate response based on what entity and updates are passed in. (Maybe ask a new question for more on that if you need it?)
May 29, 2017 at 0:26 history edited Chris Burgess CC BY-SA 3.0
added 247 characters in body
May 29, 2017 at 0:24 comment added Chris Burgess I'd probably use hook_civicrm_post for this, it should be fired for all entity updates. There's also hook_civicrm_trigger_info if DB triggers are your thing. Answer updated.
May 29, 2017 at 0:18 comment added Norm Dressler Crap. I was afraid of that. I do have a php script that does increment a column when the front-end calls the insert BUT the same doesn't happen when the back-end is used to create the contact for example. Is there a different hook to use for when a contact is created from the CiviCRM backend and one to execute after a membership is created for a user? To be clear, it is an extension that I wrote to increment a value.
May 29, 2017 at 0:05 history edited Chris Burgess CC BY-SA 3.0
added 385 characters in body
May 28, 2017 at 23:56 history answered Chris Burgess CC BY-SA 3.0