Jump to content

Manual:Hooks/HistoryRevisionTools

From mediawiki.org
HistoryRevisionTools
Available from version 1.21.0 (Gerrit change 52579)
Removed in version 1.37.0 (Gerrit change 678414)
Override or extend the revision tools available from the page history view, i.e. undo, rollback, etc.
Define function:
public static function onHistoryRevisionTools( $rev, &$links ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"HistoryRevisionTools": "MediaWiki\\Extension\\MyExtension\\Hooks::onHistoryRevisionTools"
	}
}
Called from: File(s): actions/HistoryAction.php
Interface: HistoryRevisionToolsHook.php

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


Details

[edit]
  • $rev: Revision object
  • &$links: Array of HTML links

See also

[edit]