Manual:Hooks/SpecialWatchlistQuery

From MediaWiki.org
Jump to: navigation, search
SpecialWatchlistQuery
Available from version 1.14.0
Called when building sql query for Special:Watchlist

Define function:
public static function onSpecialWatchlistQuery( &$conds, &$tables, &$join_conds, &$fields ) { ... }

Attach hook:
$wgHooks['SpecialWatchlistQuery'][] = 'MyExtensionHooks::onSpecialWatchlistQuery';
Called from: SpecialWatchlist.php

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


Details [edit]

  • &$conds: array of WHERE conditionals for query
  • &$tables: array of tables to be queried
  • &$join_conds: join conditions for the tables
  • &$fields: array of query fields