The Wayback Machine - https://web.archive.org/web/20110906065037/http://www.mediawiki.org/wiki/Manual:Hooks/OutputPageBeforeHTML

Manual:Hooks/OutputPageBeforeHTML

From MediaWiki.org
Jump to: navigation, search
OutputPageBeforeHTML
Available from version 1.6.0
Called every time wikitext is added to the OutputPage, after it is parsed but before it is added.

*Define function:
function fnMyHook( &$out, &$text ) { ... }

*Attach hook:
$wgHooks['OutputPageBeforeHTML'][] = 'fnMyHook';
Called from: OutputPage.php

*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:OutputPageBeforeHTML extensions.


[edit] Warning

Use this hook at your own risk.

[edit] Details

Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox