Manual:Hooks/SpecialPageExecuteAfterPage
From MediaWiki.org
|
|
This feature has been deprecated and should not be used with current versions of MediaWiki. This feature was deprecated (or possibly removed completely) in version 1.14.0. |
| SpecialPageExecuteAfterPage | |
|---|---|
| Available from version 1.6.0 Removed in version 1.14.0 called after executing a special page |
|
*Define function: |
function fnMyHook( $specialPage, $par, $funct ) { ... }
|
*Attach hook: |
$wgHooks['SpecialPageExecuteAfterPage'][] = 'MyExtensionHooks::someExample'; |
| Called from: | SpecialPage.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:SpecialPageExecuteAfterPage extensions.
[edit] Details
- $specialPage: SpecialPage object
- $par: paramter passed to the special page (string)
- $funct: function called to execute the special page
[edit] Usage
There is a note in includes/SpecialPage.php where this hook is called stating that it is broken for extensions:
# 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.
