Manual:Hooks/TitleIsWikitextPage

From MediaWiki.org
Jump to: navigation, search
TitleIsWikitextPage
Available from version 1.19.0 (r94259)
called when determining if a page is a wikitext or should be handled by seperate handler (via ArticleViewCustom)

Define function:
public static function onTitleIsWikitextPage( $title, &$result ) { ... }

Attach hook:
$wgHooks['TitleIsWikitextPage'][] = 'MyExtensionHooks::onTitleIsWikitextPage';
Called from: Title.php

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