Anybody knows how did I can change the target database via hook_query_alter or other hook launched before the execution of a query?
hook_query_TAG_alter is for modifying queries created by core.
To modify a views query, you need hook_views_query_alter()
I got it, thank's a lot!!!
See all hot content.
Drupal is a registered trademark of Dries Buytaert.