Manual:Hooks/SpecialPageExecuteBeforePage
Appearance
This feature was removed from MediaWiki core in version 1.14.0. Please see SpecialPageBeforeExecute for an alternative way to use this feature. |
SpecialPageExecuteBeforePage | |
---|---|
Available from version 1.6.0 Removed in version 1.14.0 Called before setting the page text of the special page | |
Define function: | public static function onSpecialPageExecuteBeforePage( $specialpage, $parameters, $function ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"SpecialPageExecuteBeforePage": "MediaWiki\\Extension\\MyExtension\\Hooks::onSpecialPageExecuteBeforePage"
}
}
|
Called from: | File(s): SpecialPage.php |
Interface: | SpecialPageExecuteBeforePageHook.php |
For more information about attaching hooks, see Manual:Hooks .
Details
[edit]- $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 (??)