Manual:Hooks/SkinAfterContent
From MediaWiki.org
| SkinAfterContent | |
|---|---|
| Available from version 1.14.0 Allows extensions to add text after the page content and article metadata. |
|
*Define function: |
function fnMyHook( &$data, Skin $skin ) { ... }
|
*Attach hook: |
$wgHooks['SkinAfterContent'][] = 'MyExtensionHooks::someExample'; |
| Called from: | Skin.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:SkinAfterContent extensions.
[edit] Details
- &$data: (string) Text to be printed out directly (without parsing)
- $skin: (skin) Skin object
This hook should work in all skins. Just set the &$data variable to the text you're going to add.