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

## Ready State: Yes