Manual:Hooks/ArticleRevisionUndeleted
Jump to navigation
Jump to search
![]() | 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. Please see RevisionUndeleted for an alternative way to use this feature. |
ArticleRevisionUndeleted | |
---|---|
Available from version 1.12.0 Called after an article revision is restored |
|
Define function: |
public static function onArticleRevisionUndeleted( $title, $revision, $oldPageID ) { ... }
|
Attach hook: |
In extension.json: {
"Hooks": {
"ArticleRevisionUndeleted": "MyExtensionHooks::onArticleRevisionUndeleted"
}
}
|
Called from: | File(s): page/PageArchive.php |
Interface: | ArticleRevisionUndeletedHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:ArticleRevisionUndeleted extensions.
Details[edit]
- $title: the article title
- $revision: the revision object of the restored article revision
- $oldPageID: the page ID of the revision when archived (may be null, may be number in string form)