I believe the filter handler in the 6.x version used to provide an "SQL filter code" box where you could use PHP to "Return a valid SQL WHERE clause."

This doesn't seem to be present in the 7.x version and I can't find any alternative modules that provide a similar feature.

#1 views_php-sql-filter-2028537-0.patch2.69 KBmorbiD
Members fund testing for the Drupal project. Drupal Association Learn more


morbiD’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Issue summary: View changes
Status: Active » Needs review
2.69 KB

Copied the relevant code from the 6.x-1.x branch to the 7.x-2.x branch and it seems to work fine. Patch attached.

Patch should also apply to 7.x-1.x without any problems.