Extension:Nuke/Hooks/NukeDeletePage

NukeDeletePage
Available from version 1.27.0 (Gerrit change 255981)
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.
Define function:
public static function onNukeDeletePage( Title $title, string $reason, bool &$deletionResult ) { ... }
Attach hook:
$wgHooks['NukeDeletePage'][] = 'MyExtensionHooks::onNukeDeletePage';
Called from:File(s): Nuke / SpecialNuke.php
Function(s): doDelete

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

Details

edit
  • $title: title to delete
  • $reason: reason given by the user for deletion
  • &$deletionResult: Whether the deletion was successful or not