MediaWiki REL1_39
|
This is a hook handler interface, see docs/Hooks.md. More...
Public Member Functions | |
onArticleUndelete ( $title, $create, $comment, $oldPageId, $restoredPages) | |
This hook is called when one or more revisions of an article are restored. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "ArticleUndelete" to register handlers implementing this interface.
Definition at line 14 of file ArticleUndeleteHook.php.
MediaWiki\Page\Hook\ArticleUndeleteHook::onArticleUndelete | ( | $title, | |
$create, | |||
$comment, | |||
$oldPageId, | |||
$restoredPages ) |
This hook is called when one or more revisions of an article are restored.
Title | $title | Title corresponding to the article restored |
bool | $create | Whether or not the restoration caused the page to be created (i.e. it didn't exist before) |
string | $comment | Comment associated with the undeletion |
int | $oldPageId | ID of page previously deleted (from archive table). This ID will be used for the restored page. |
array | $restoredPages | Set of page IDs that have revisions restored for this undelete, with keys set to page IDs and values set to 'true' |
Implemented in MediaWiki\HookContainer\HookRunner.