Manual:Hooks/ArticleDeleteAfterSuccess
Appearance
ArticleDeleteAfterSuccess | |
---|---|
Available from version 1.25.0 (Gerrit change 170530) Output after an article has been deleted | |
Define function: | public static function onArticleDeleteAfterSuccess( Title $title, OutputPage $output ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"ArticleDeleteAfterSuccess": "MediaWiki\\Extension\\MyExtension\\Hooks::onArticleDeleteAfterSuccess"
}
}
|
Called from: | File(s): page/Article.php Function(s): doDelete |
Interface: | ArticleDeleteAfterSuccessHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:ArticleDeleteAfterSuccess extensions.
Details
[edit]$title
: Title object of the article that has been deleted.$outputPage
: OutputPage object that can be used to append the output.