< Manual:Hooks
ArticleConfirmDelete | |
---|---|
Available from version 1.16.0 Occurs before writing the confirmation form for article deletion. | |
Define function: | public static function onArticleConfirmDelete( $article, $output, &$reason ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"ArticleConfirmDelete": "MyExtensionHooks::onArticleConfirmDelete"
}
}
|
Called from: | File(s): page/Article.php |
Interface: | ArticleConfirmDeleteHook.php |
For more information about attaching hooks, see Manual:Hooks
For examples of extensions using this hook, see Category:ArticleConfirmDelete extensions.
Details
- $article: the article (object) being deleted
- $output: the OutputPage object ($wgOut)
- &$reason: the reason (string) the article is being deleted
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.