Manual:Hooks/ArticleConfirmDelete
ArticleConfirmDelete | |
---|---|
Available fromversion 1.16.0(r55573,codereview) Occurs before writing the confirmation form for article deletion. | |
Define function: | publicstaticfunctiononArticleConfirmDelete($article,$output,&$reason){...}
|
Attach hook: | Inextension.json:
{
"Hooks":{
"ArticleConfirmDelete":"MediaWiki\\Extension\\MyExtension\\Hooks::onArticleConfirmDelete"
}
}
|
Called from: | File(s):page/Article.php |
Interface: | ArticleConfirmDeleteHook.php |
For more information about attaching hooks, seeManual:Hooks .
For examples of extensions using this hook, seeCategory:ArticleConfirmDelete extensions.
Details
[edit]- $article: the article (object) being deleted
- $output: the OutputPage object ($wgOut)
- &$reason: the reason (string) the article is being deleted