Manual:Hooks/ArticleRollbackComplete/da
This feature was removed from MediaWiki core in version 1.37.0 (after being deprecated in 1.35.0). Please see PageSaveComplete for an alternative way to use this feature. |
ArticleRollbackComplete | |
---|---|
Tilgængelig fra version 1.12.0 Fjernet i version 1.37.0 (Gerrit change 678414) Udføres, efter at en artikeltilbageføring er fuldført | |
Define function: | public static function onArticleRollbackComplete( &$article, $user, $revision, $current ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"ArticleRollbackComplete": "MediaWiki\\Extension\\MyExtension\\Hooks::onArticleRollbackComplete"
}
}
|
Called from: | Fil(er): 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/da.
Detaljer
- $article - artiklen der blev redigeret. (WikiPage object) 1.18+
- $user - brugeren der udførte tilbagerulningen
- $revision - the revision the page was reverted back to
- $current - the Revision object of the top edit that was reverted.