"Hook is a mechanism, by which a function can intercept events before they reach an application." . . . .