MediaWiki REL1_37
|
This is a hook handler interface, see docs/Hooks.md. More...
Public Member Functions | |
onArticleDelete (WikiPage $wikiPage, User $user, &$reason, &$error, Status &$status, $suppress) | |
This hook is called before an article is deleted. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "ArticleDelete" to register handlers implementing this interface.
Definition at line 17 of file ArticleDeleteHook.php.
MediaWiki\Page\Hook\ArticleDeleteHook::onArticleDelete | ( | WikiPage | $wikiPage, |
User | $user, | ||
& | $reason, | ||
& | $error, | ||
Status & | $status, | ||
$suppress | |||
) |
This hook is called before an article is deleted.
WikiPage | $wikiPage | WikiPage being deleted |
User | $user | User deleting the article |
string | &$reason | Reason the article is being deleted |
string | &$error | If the deletion was prohibited, the (raw HTML) error message to display (added in 1.13) |
Status | &$status | Modify this to throw an error. Overridden by $error (added in 1.20) |
bool | $suppress | Whether this is a suppression deletion or not (added in 1.27) |