Translations:Manual:Hooks/6/en

A hook is triggered by a call to the function Hooks::run (described in file $1, and defined in $2. The first argument to Hooks::run is the name of the hook, the second is the array of arguments for that hook. It will find the event handlers to run in the array $3. It calls the PHP function $call_user_func_array with arguments being the function to be called and its arguments.