Support (offered by community volunteers) > Usability Improvements
Custom Field Pre Hook
(1/1)
bpmccain:
Stemming from this discussion:
http://forum.civicrm.org/index.php/topic,21152.0.html
It would be great to have a _custom_pre hook that enables some additional code to be run on change of a custom field.
Right now, the _pre hook doesn't get triggered on custom field changes, and the _custom hook is only run after the changes have been committed and provides no way of knowing exactly what was changed (as far as I can tell). Changes to the existing _custom hook might suffice if it was able to let us know which field within a custom group was changed.
Thoughts?
Brian
bpmccain:
I found a way around this. I'm not a programmer, so it is a bit of a hack job, but if anyone is interested it allows you to see the previous values of all fields inside the custom group that has been changed inside of the hook_civicrm_custom.
http://issues.civicrm.org/jira/browse/CRM-9649
It would be great if this was tidied up and found its way into core.
Navigation
[0] Message Index
Go to full version