[Drupal] How to Alter Views query in Drupal 7 Drupal Technical | 1 min read Altering a query is to change the results as desired by the user. hook__views_query_alter() in Drupal is for altering the query. Before start reading, you should have an idea about what is a view and how views created? See here.