Manual:Hooks/ArticleDeleteComplete

From MediaWiki.org
Jump to: navigation, search
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 ) { ... }
Attach hook:
$wgHooks['ArticleDeleteComplete'][] = 'MyExtensionHooks::onArticleDeleteComplete';
Called from: File(s): Article.php

For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:ArticleDeleteComplete extensions.


Details[edit | edit source]

  • $article: the article that was deleted. WikiPage in MW >= 1.18, Article in 1.17.x and earlier.
  • $user: the user that deleted the article
  • $reason: the reason the article was deleted
  • $id: id of the article that was deleted (added in 1.13)
  • $content: the content of the deleted article (added in 1.21)
  • $logEntry: the log entry used to record the deletion (added in 1.21)

See also[edit | edit source]