Manual:Hooks/RawPageViewBeforeOutput
From MediaWiki.org
| RawPageViewBeforeOutput | |
|---|---|
| Available from version 1.10.0 called before displaying a page with action=raw. Returns true if display is allowed, false if display is not allowed. |
|
*Define function: |
function fnMyHook( &$rawPage, &$text ) { ... }
|
*Attach hook: |
$wgHooks['RawPageViewBeforeOutput'][] = 'MyExtensionHooks::someExample'; |
| Called from: | RawPage.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:RawPageViewBeforeOutput extensions.