CRM-13201 add hook to alter tpl file in use