Manual:Hooks/SpecialPageExecuteBeforePage

Details

 * $specialpage: The SpecialPage being executed
 * $parameters: Any parameter passed to the page (i.e. /wiki/index.php/SpecialAllpages/Foo. Foo is the parameter)
 * $function: The function called to execute the special page (??)

Usage
There is a note in includes/SpecialPage.php where this hook is called stating that it is broken for extensions:


 * 1) FIXME: these hooks are broken for extensions and anything else that subclasses SpecialPage.

This is due to the fact that extensions that subclass SpecialPage implement their own execute function. Since the hooks are fired in the SpecialPage parent class execute function they don't get called in the subclass. A bug has been filed for this, but the chances of it being fixed in the short term are probably small due to this subclass/parentclass problem.