Manual:Hooks/WantedPages::getSQL

From MediaWiki.org
Jump to: navigation, search
WantedPages::getSQL
Available from version 1.15.0
Removed in version 1.18.0
Called in WantedPagesPage::getSQL(), can be used to alter the SQL query which gets the list of wanted pages.
Define function:
public static function onWantedPages::getSQL( &$wantedPages, &$sql ) { ... }
Attach hook:
$wgHooks['WantedPages::getSQL'][] = 'MyExtensionHooks::onWantedPages::getSQL';
Called from: File(s): SpecialWantedpages.php

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

Details[edit | edit source]

  • &$wantedPages: WantedPagesPage object
  • &$sql: raw SQL query used to get the list of wanted pages