Rewrite a Views query
by Colin Calnan | April 13th, 2010 |
Recently, due to Views lack of ability to OR it's filters together and due to some serious constraints in relation to arguments and relationships, I found myself needing to figure out how to rewrite the SQL of a Drupal view so that I could get the records that I needed.
It seems like there are two ways to do this. You can either rewrite the SQL directly, or try to hack the query object that views provides.
A quick Google search and I ended up on Drupal.org
