Manual:Hooks/DifferenceEngineRenderRevisionShowFinalPatrolLink

From MediaWiki.org
Jump to navigation Jump to search
DifferenceEngineRenderRevisionShowFinalPatrolLink
Available from version 1.29.0 (Gerrit change 298026)
An extension can hook into this hook point and return false to not show the final "mark as patrolled" link on the bottom of a page.
Define function:
public static function onDifferenceEngineRenderRevisionShowFinalPatrolLink(  ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"DifferenceEngineRenderRevisionShowFinalPatrolLink": "MyExtensionHooks::onDifferenceEngineRenderRevisionShowFinalPatrolLink"
	}
}

For MediaWiki ≤1.25:

$wgHooks['DifferenceEngineRenderRevisionShowFinalPatrolLink'][] = 'MyExtensionHooks::onDifferenceEngineRenderRevisionShowFinalPatrolLink';
Called from:File(s): DifferenceEngine.php
Function(s): renderNewRevision

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