Posted by daneelcm on July 18, 2012 at 4:27pm
Anybody knows how did I can change the target database via hook_query_alter or other hook launched before the execution of a query?
Anybody knows how did I can change the target database via hook_query_alter or other hook launched before the execution of a query?
Comments
hook_query_TAG_alter is for
hook_query_TAG_alter is for modifying queries created by core.
To modify a views query, you need hook_views_query_alter()
http://api.drupal.org/api/views/views.api.php/function/hook_views_query_...
I got it, thank's a lot!!!
I got it, thank's a lot!!!