title: OR operator in Drupal View Filters
body: <p>I need to implement an OR operator between some filters in a Drupal View.
  By default, Drupal AND's every filter together.</p>
  
  <p>By using </p>
  
  <pre><code>hook_views_query_alter(&amp;$view, &amp;$query)
  </code></pre>
  
  <p>I can access the query ( var $query ) , and I can change either :</p>
  
  <pre><code>$query-&gt;where[0]['type'] 
  </code></pre>
  
  <p>to 'OR', or</p>
  
  <pre><code>$query-&gt;group_operator 
  </code></pre>
  
  <p>to 'OR'</p>
  
  <p>The problem is however, that I do not need OR's everywhere. I've tried changing both of them to OR seperately, and it doesn't yield the desired result.</p>
  
  <p>It seems changing those values, puts OR's everywhere, while I need => ( filter 1 AND filter 2 ) OR ( filter 3 ), so just 1 OR.</p>
  
  <p>I could just check the Query of the View, copy it, modify it, and run it through db_query, but that's just dirty ..</p>
  
  <p>Any suggestions ? </p>
  
  <p>Thx in advance.</p>