Manual:Hooks/HistoryRevisionTools

From mediawiki.org
Jump to navigation Jump to search
HistoryRevisionTools
Available from version 1.21.0 (Gerrit change 52579)
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.


Details[edit]

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

See also[edit]