Manual:Hooks/HistoryRevisionTools

HistoryRevisionTools
Available from version 1.21.0 (Gerrit change 52579)
Removed in version 1.37.0
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": "MyExtensionHooks::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.


DetailsEdit

  • $rev: Revision object
  • &$links: Array of HTML links

See alsoEdit