hook_query_alter???

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
daneelcm's picture

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

wjaspers's picture

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!!!

daneelcm's picture

I got it, thank's a lot!!!

Views Developers

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: