Manual:Hooks/HistoryRevisionTools
This feature was removed from MediaWiki core in version 1.37.0 (after being deprecated in 1.35.0). Please see HistoryTools for an alternative way to use this feature. |
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