mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Nuke
synced 2024-12-04 04:38:21 +00:00
7bd74621a7
Bug: T254558 Change-Id: Ibadbdb6f15fc407ef7b9b77b13811b68031e1439
16 lines
486 B
PHP
16 lines
486 B
PHP
<?php
|
|
|
|
interface NukeDeletePageHook {
|
|
|
|
/**
|
|
* Allows other extensions to handle the deletion of titles
|
|
* Return true to let Nuke handle the deletion or false if it was already handled in the hook.
|
|
*
|
|
* @param Title $title title to delete
|
|
* @param string $reason reason for deletion
|
|
* @param bool &$deletionResult Whether the deletion was successful or not
|
|
* @return bool|void
|
|
*/
|
|
public function onNukeDeletePage( Title $title, string $reason, bool &$deletionResult );
|
|
}
|