]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blob - extensions/Nuke/docs/hooks.txt
MediaWiki 1.30.2
[autoinstallsdev/mediawiki.git] / extensions / Nuke / docs / hooks.txt
1 hooks.txt
2
3 This document describes the events triggered by the Nuke extension.
4
5 For more information about events and hooks in general see mediawiki/docs/hooks.txt in gerrit.
6
7 ==Events and parameters==
8
9 'NukeGetNewPages': After searching for pages to delete. Can be used to add and remove pages.
10 $username: the username filter specified by the user
11 $pattern: the pattern filter specified by the user
12 $namespace: the namespace filter specified by the user
13 $limit: the limit filter specified by the user
14 &$pages: list of pages title already retrieved
15
16 'NukeDeletePage': Allows other extensions to handle the deletion of titles.
17 Return true to let Nuke handle the deletion or false if it was already handled in the hook.
18 $title: title to delete
19 $reason: reason given by the user for deletion
20 &$deletionResult: Whether the deletion was successful or not