File: hooks.txt

package info (click to toggle)
mediawiki 1%3A1.35.13-1%2Bdeb11u2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 274,932 kB
  • sloc: php: 677,563; javascript: 572,709; sql: 11,565; python: 4,447; xml: 3,145; sh: 892; perl: 788; ruby: 496; pascal: 365; makefile: 128
file content (20 lines) | stat: -rw-r--r-- 850 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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