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, $reason, $id ) { ... }

*Attach hook:
$wgHooks['ArticleDeleteComplete'][] = 'fnMyHook';
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
  • $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