Manual:Hooks/ArticleRevisionUndeleted
From MediaWiki.org
| 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: |
$wgHooks['ArticleRevisionUndeleted'][] = 'MyExtensionHooks::onArticleRevisionUndeleted'; |
| Called from: | SpecialUndelete.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:ArticleRevisionUndeleted extensions.
[edit] Details
- $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)
