--CRM-15758, added code to invoke pre and post hook
Merge pull request #4779 from pradpnayak/CRM-15758

--CRM-15758, added code to invoke pre and post hook