Perform alterations to a structured query.
Structured (aka dynamic) queries that have tags associated may be altered by any module before the query is executed.
$query: A Query object describing the composite parts of a SQL query.
node_query_node_access_alter()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
function hook_query_alter(QueryAlterableInterface $query) {
if ($query
->hasTag('micro_limit')) {
$query
->range(0, 2);
}
}