Manual:Hooks/UndeleteShowRevision
This deprecated feature should no longer be used, but is still available for reasons of backwards compatibility. This feature was deprecated in version 1.35.0. |
UndeleteShowRevision | |
---|---|
Available from version 1.9.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.
DetailsEdit
- $title: title object related to the revision
- $rev: revision (object) that will be viewed