< Manual:Hooks 
 
      |  | This feature was removed from MediaWiki core in version 1.37.0 (after being deprecated in 1.35.0). Please see DiffTools for an alternative way to use this feature. | 
| DiffRevisionTools | |
|---|---|
| Available from version 1.21.0 (Gerrit change 52579) Removed in version 1.37.0 Override or extend the revision tools available from the diff view, i.e. undo, etc. | |
| Define function: | public static function onDiffRevisionTools( Revision $newRev, &$links, $oldRev ) { ... }
 | 
| Attach hook: | In extension.json: {
	"Hooks": {
		"DiffRevisionTools": "MyExtensionHooks::onDiffRevisionTools"
	}
}
 | 
| Called from: | File(s): diff/DifferenceEngine.php | 
| Interface: | DiffRevisionToolsHook.php | 
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:DiffRevisionTools extensions.
Details
- $newRev: Revision object of the "new" revision
- &$links: Array of HTML links
- $oldRev: Revision object of the "old" revision (may be null) (since 1.23)
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.