Recently we updated CiviCRM from 4.1 to 4.7 (yeah, we really need it).
We have custom code in the pre and post hooks that validates some contact fields.
Now, in the last version of CiviCRM, you can edit the fields inline, but we noticed that we have to duplicate our code if we want to edit inline.
My question is, is there anyway to not duplicate the code for the inline edit? Is there some hook that triggers both the inline and the edit fields?