Manual:Hooks/BeforeDisplayNoArticleText

From MediaWiki.org
Jump to navigation Jump to search
BeforeDisplayNoArticleText
Available from version 1.19.0
Before displaying noarticletext or noarticletext-nopermission messages.
Define function:
public static function onBeforeDisplayNoArticleText( $article ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"BeforeDisplayNoArticleText": "MyExtensionHooks::onBeforeDisplayNoArticleText"
	}
}
Called from:File(s): page/Article.php
Interface:BeforeDisplayNoArticleTextHook.php

For more information about attaching hooks, see $1.
For examples of extensions using this hook, see Category:BeforeDisplayNoArticleText extensions.

Details[edit]

  • $article: article object