Translations:Manual:Hooks/712/en

All the following are valid ways to define a hook function for the event EventName that is passed two parameters, showing the code that will be executed when EventName happens: