X-Git-Url: https://scripts.mit.edu/gitweb/autoinstallsdev/mediawiki.git/blobdiff_plain/19e297c21b10b1b8a3acad5e73fc71dcb35db44a..6932310fd58ebef145fa01eb76edf7150284d8ea:/extensions/Nuke/docs/hooks.txt diff --git a/extensions/Nuke/docs/hooks.txt b/extensions/Nuke/docs/hooks.txt new file mode 100644 index 00000000..587d38b6 --- /dev/null +++ b/extensions/Nuke/docs/hooks.txt @@ -0,0 +1,20 @@ +hooks.txt + +This document describes the events triggered by the Nuke extension. + +For more information about events and hooks in general see mediawiki/docs/hooks.txt in gerrit. + +==Events and parameters== + +'NukeGetNewPages': After searching for pages to delete. Can be used to add and remove pages. +$username: the username filter specified by the user +$pattern: the pattern filter specified by the user +$namespace: the namespace filter specified by the user +$limit: the limit filter specified by the user +&$pages: list of pages title already retrieved + +'NukeDeletePage': 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. +$title: title to delete +$reason: reason given by the user for deletion +&$deletionResult: Whether the deletion was successful or not