Extension:Nuke/Hooks/NukeGetNewPages

NukeGetNewPages
Available from version 1.27.0 (Gerrit change 255981)
Called after searching for pages to delete; can be used to add and remove pages.
Define function:
public static function onNukeGetNewPages( $username, $pattern, $namespace, $limit, &$pages ) { ... }
Attach hook:
$wgHooks['NukeGetNewPages'][] = 'MyExtensionHooks::onNukeGetNewPages';
Called from:File(s): Nuke / SpecialNuke.php
Function(s): getNewPages

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

Details

edit
  • $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 page titles already retrieved