< Manual:Hooks
UndeleteShowRevision
Available from version 1.9.0
Removed in version 1.37.0
called when showing a revision in Special:Undelete
Define function:
public static function onUndeleteShowRevision( $title, $row ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"UndeleteShowRevision": "MyExtensionHooks::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

  • $title: title object related to the revision
  • $rev: revision (object) that will be viewed
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.