Extension:MobileFrontend/SpecialWatchlistQuery

From MediaWiki.org
Jump to navigation Jump to search
SpecialWatchlistQuery
Available from version 1.0.0
Internal hook that allows the modification of the sql query made in SpecialMobileWatchlist::doFeedQuery
Define function:
public static function onSpecialWatchlistQuery( array $conds, array &$tables, array &$join_conds, array &$fields, array &$values ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"SpecialWatchlistQuery": "MyExtensionHooks::onSpecialWatchlistQuery"
	}
}

For MediaWiki ≤1.25:

$wgHooks['SpecialWatchlistQuery'][] = 'MyExtensionHooks::onSpecialWatchlistQuery';
Called from:File(s): MobileFrontend extension/SpecialMobileWatchlist.php

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