Manual:Hooks/ArticleRollbackComplete/pl
Appearance
Ta funkcja została usunięta z jądra MediaWiki w wersji 1.37.0 (po wycofaniu w 1.35.0).
Proszę zobaczyć alternatywny sposób użycia tej funkcji na PageSaveComplete. |
| ArticleRollbackComplete | |
|---|---|
| Dostępne od wersji version 1.12.0 Usunięto w version 1.37.0 (Gerrit change 678414) Executes after an article rollback is complete | |
| Zdefiniuj funkcję: | public static function onArticleRollbackComplete( &$article, $user, $revision, $current ) { ... }
|
| Dołącz hak: | W extension.json:
{
"Hooks": {
"ArticleRollbackComplete": "MediaWiki\\Extension\\MyExtension\\Hooks::onArticleRollbackComplete"
}
}
|
| Called from: | Plik(i): page/WikiPage.php |
| Interface: | ArticleRollbackCompleteHook.php |
For more information about attaching hooks, see Podręcznik:Haki.
For examples of extensions using this hook, see Category:ArticleRollbackComplete extensions/pl.
Szczegóły
- $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.