Manual:Hooks/ArticleConfirmDelete

From MediaWiki.org
Jump to: navigation, search
ArticleConfirmDelete
Available from version 1.16.0
Occurs before writing the confirmation form for article deletion.

*Define function:
function fnMyHook( $article, $output, &$reason ) { ... }

*Attach hook:
$wgHooks['ArticleConfirmDelete'][] = 'MyExtensionHooks::someExample';
Called from: Article.php

*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:ArticleConfirmDelete extensions.


[edit] Details

  • $article: the article (object) being deleted
  • $output: the OutputPage object ($wgOut)
  • &$reason: the reason (string) the article is being deleted
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox