Manual:Hooks/ApiQueryBaseBeforeQuery

Called for (some) API query modules before a database query is made. WARNING: It would be very easy to misuse this hook and break the module! Any joins added *must* join on a unique key of the target table unless you really know what you're doing. An API query module wanting to use this hook should see the ApiQueryBase::select and ApiQueryBase::processRow documentation.

Details

 * $module: ApiQueryBase module in question
 * &$tables: array of tables to be queried
 * &$fields: array of columns to select
 * &$conds: array of WHERE conditionals for query
 * &$query_options: array of options for the database request
 * &$join_conds: join conditions for the tables
 * &$hookData: array that will be passed to the ' and hooks, intended for inter-hook communication.