Added patch file for before/after hooks on feature restore hooks.