MediaWiki REL1_35
|
Stable to implement. More...
Public Member Functions | |
onArticleDelete ( $wikiPage, $user, &$reason, &$error, &$status, $suppress) | |
This hook is called before an article is deleted. | |
Stable to implement.
Definition at line 13 of file ArticleDeleteHook.php.
MediaWiki\Page\Hook\ArticleDeleteHook::onArticleDelete | ( | $wikiPage, | |
$user, | |||
& | $reason, | ||
& | $error, | ||
& | $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) |
Implemented in MediaWiki\HookContainer\HookRunner.