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:
function fnMyHook( &$conds, &$tables, &$join_conds, &$fields ) { ... }

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

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


[edit] Details

  • &$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
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox