Manual:Hooks/ArticleRollbackComplete/da

This page is a translated version of the page Manual:Hooks/ArticleRollbackComplete and the translation is 44% complete.
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.

See also