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:
function fnMyHook( &$article, User &$user, $reason, $id ) { ... }

*Attach hook:
$wgHooks['ArticleDeleteComplete'][] = 'MyExtensionHooks::someExample';
Called from: Article.php

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


[edit] Details

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

[edit] See also

Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox