Manual:Hooks/ArticleShowPatrolFooter

From MediaWiki.org
Jump to navigation Jump to search
ArticleShowPatrolFooter
Available from version 1.32.0 (Gerrit change 441634)
can be used to hide the [mark as patrolled] link in certain circumstances
Define function:
public static function onArticleShowPatrolFooter( Article $article ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"ArticleShowPatrolFooter": "MyExtensionHooks::onArticleShowPatrolFooter"
	}
}

For MediaWiki ≤1.25:

$wgHooks['ArticleShowPatrolFooter'][] = 'MyExtensionHooks::onArticleShowPatrolFooter';
Called from:File(s): page/Article.php
Function(s): showPatrolFooter

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

Details[edit]

  • $article: Article object