< Manual:Hooks
![]() | 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 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
- $rev: Revision object
- &$links: Array of HTML links
See also
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.