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: |
function fnMyHook( $title, $create ) { ... }
|
*Attach hook: |
$wgHooks['ArticleUndelete'][] = 'fnMyHook'; |
| Called from: | SpecialUndelete.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:ArticleUndelete extensions.
[edit] Details
$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)