Manual:Hooks/ArticleDeleteAfterSuccess

From Linux Web Expert

ArticleDeleteAfterSuccess
<translate> Available from <tvar name=1><translate> version <tvar (Gerrit change 170530)</tvar></translate>
Output after an article has been deleted
<translate> Define function:</translate>
public static function onArticleDeleteAfterSuccess( Title $title, OutputPage $output ) { ... }
<translate> Attach hook:</translate> <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
	"Hooks": {
		"ArticleDeleteAfterSuccess": "MediaWiki\\Extension\\MyExtension\\Hooks::onArticleDeleteAfterSuccess"
	}
}
<translate> Called from:</translate> <translate> File(s):</translate> page/Article.php
<translate> Function(s):</translate> doDelete
<translate> Interface:</translate> ArticleDeleteAfterSuccessHook.php

<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:ArticleDeleteAfterSuccess extensions</tvar>.</translate>


Details

  • $title: Title object of the article that has been deleted.
  • $outputPage: OutputPage object that can be used to append the output.