Manual:Hooks/ArticleUndelete
From MediaWiki.org
| ArticleUndelete | |
|---|---|
| Available from version 1.9.1 When one or more revisions of an article are restored |
|
Define function: |
public static function onArticleUndelete( $title, $create ) { ... }
|
Attach hook: |
$wgHooks['ArticleUndelete'][] = 'MyExtensionHooks::onArticleUndelete'; |
| Called from: | SpecialUndelete.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:ArticleUndelete extensions.
Details [edit]
$title: Title corresponding to the article restored
$create: Whether or not the restoration caused the page to be created (i.e. it didn't exist before)
