Manual:Hooks/ArticleRollbackComplete
Jump to navigation
Jump to search
![]() | This deprecated feature should no longer be used, but is still available for reasons of backwards compatibility. This feature was deprecated in version 1.35.0. Please see PageSaveComplete for an alternative way to use this feature. |
ArticleRollbackComplete | |
---|---|
Available from version 1.12.0 Executes after an article rollback is complete |
|
Define function: |
public static function onArticleRollbackComplete( &$article, $user, $revision, $current ) { ... }
|
Attach hook: |
In extension.json: {
"Hooks": {
"ArticleRollbackComplete": "MyExtensionHooks::onArticleRollbackComplete"
}
}
|
Called from: | File(s): page/WikiPage.php |
Interface: | ArticleRollbackCompleteHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:ArticleRollbackComplete extensions.
Details[edit]
- $article - the article that was edited. (WikiPage object) 1.18+
- $user - the user who did the rollback
- $revision - the revision the page was reverted back to
- $current - the Revision object of the top edit that was reverted.