MediaWiki REL1_35
|
Stable to implement. More...
Public Member Functions | |
onArticleUndelete ( $title, $create, $comment, $oldPageId, $restoredPages) | |
This hook is called when one or more revisions of an article are restored. | |
Stable to implement.
Definition at line 12 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.