Available from version 1.9.0
Removed in version 1.37.0 (Gerrit change 678414)
called when showing a revision in Special:Undelete
Define function:
public static function onUndeleteShowRevision( $title, $row ) { ... }
Attach hook: In extension.json:
	"Hooks": {
		"UndeleteShowRevision": "MediaWiki\\Extension\\MyExtension\\Hooks::onUndeleteShowRevision"
Called from: File(s): specials/SpecialUndelete.php
Interface: UndeleteShowRevisionHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:UndeleteShowRevision extensions.

Details edit

  • $title: title object related to the revision
  • $rev: revision (object) that will be viewed