Příručka:Háčky/ArticleRollbackComplete

This page is a translated version of the page Manual:Hooks/ArticleRollbackComplete and the translation is 11% complete.
ArticleRollbackComplete
Dostupné od verze 1.12.0
Odstraněno od verze 1.37.0 (Gerrit change 678414)
Executes after an article rollback is complete
Definice funkce:
public static function onArticleRollbackComplete( &$article, $user, $revision, $current ) { ... }
Registrace háčku: V extension.json:
{
	"Hooks": {
		"ArticleRollbackComplete": "MediaWiki\\Extension\\MyExtension\\Hooks::onArticleRollbackComplete"
	}
}
Volá se z: Soubor/y: page/WikiPage.php
Rozhraní: ArticleRollbackCompleteHook.php

Další informace o háčcích najdete na stránce Příručka:Háčky .
Chcete-li vědět, jaká rozšíření tento háček používají, podívejte se na stránku Category:ArticleRollbackComplete extensions/cs.

Details

  • $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.

See also