Adding a JOIN statement in hook_views_query_alter()
问题 I need to modify a query Views generates so that I can use highly custom filters. I have implemented the add_where() function with some ORs thanks to this question: OR operator in Drupal View Filters However this only solves a part of my problem. There are some fields that I cannot filter on because I need to have extra JOINs in my query. Is there something along the lines of $view->query->add_where() that can insert JOIN statements? 回答1: Well, there is $view->query->add_table() and $view-