Manual:Hooks/ArticleDeleteComplete/cs

Tato zastaralá funkce by se již neměla používat, ale je stále dostupná z důvodu zpětné kompatibility. Tato funkce byla ve verzi 1.37.0 zastaralá. Alternativní způsob použití této funkce naleznete v části PageDeleteComplete. ArticleDeleteComplete Available from version 1.4.0 Occurs after the delete article request has been processed Define function: public static function onArticleDeleteComplete( &$article, User &$user, $reason, $id, $content, LogEntry $logEntry, $archivedRevisionCount ) { ... } Attach hook:	In extension.json: {	"Hooks": { "ArticleDeleteComplete": "MyExtensionHooks::onArticleDeleteComplete" } } Called from:	File(s): page/WikiPage.php Interface:	ArticleDeleteCompleteHook.php For more information about attaching hooks, see Manual:Hooks. For examples of extensions using this hook, see Category:ArticleDeleteComplete extensions.

Details $article: the article that was deleted (WikiPage object) - 1.18+ $user: the user that deleted the article $reason: the reason the article was deleted $id: id of the article that was deleted 1.13+ $content: the content of the deleted article, or null in case of an error 1.21+ $logEntry: the log entry used to record the deletion 1.21+ $archivedRevisionCount: the number of revisions archived during the page delete 1.28+ See also ArticleDelete Kategorie: MediaWiki hooksHooks added in MediaWiki 1.4.0MediaWiki deprecated or obsolete featuresHooks deprecated in MediaWiki 1.37.0MediaWiki hooks included in WikiPage.php