Manual:Hooks/WantedPages::getSQL
Appearance
This feature was removed from MediaWiki core in version 1.18.0. Please see WantedPages::getQueryInfo for an alternative way to use this feature. |
WantedPages::getSQL | |
---|---|
Available from version 1.15.0 Removed in version 1.18.0 can be used to alter the SQL query which gets the list of wanted pages. | |
Define function: | public static function onWantedPages_getSQL( WantedPagesPage &$wantedPages, &$sql ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"WantedPages::getSQL": "MediaWiki\\Extension\\MyExtension\\Hooks::onWantedPagesgetSQL"
}
}
|
Called from: | File(s): specials/SpecialWantedpages.php Function(s): WantedPagesPage::getSQL() |
Interface: | WantedPages__getSQLHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:WantedPages::getSQL extensions.
Details
[edit]- &$wantedPages: WantedPagesPage object
- &$sql: raw SQL query used to get the list of wanted pages