Revert "remove hooks.php"

This reverts commit 6aa7b393a30b09d6198eab6f4e0eb9f80c3bdf5d.