Manual:Hooks/ArticleRollbackComplete/da

From mediawiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:Hooks/ArticleRollbackComplete and the translation is 33% complete.
Other languages:
English • ‎dansk • ‎中文 • ‎日本語
ArticleRollbackComplete
Tilgængelig fra 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: 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