Adds a function to the specified hook, which will be executed at some point of the code.
Tags:
return:
true if successful, false in any other case.
access:
public
Parameters:
name
$name
The name of the hook.
hook
$hook
A mixed object. Can be the name of a function (string) or an array with two elements: the former, the name of a class or an object, and the latter the name of the method.
A mixed object. Can be the name of a function (string) or an array with two elements: the former, the name of a class or an object, and the latter the name of the method.