Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
At the moment we have option to choose either AND or OR for group operator. It would be useful to allow negating conditions with NOT (AND NOT
, OR NOT
).
In views_plugin_query_default::build_condition() we could either whitelist allowed conditions or allow custom ones with db_condition().
This is basically what I need for current project but ideally it would be best to add all conjunction/disjunction operators: AND, OR, XOR, NAND, NOR and XNOR
Comment | File | Size | Author |
---|---|---|---|
#4 | views-allow_custom_group_operators_in_filters-2857329-4.patch | 2.38 KB | Andrew Answer |
| |||
#2 | allow_custom_group-2857329-2.patch | 2.38 KB | zaporylie |
|
Comments
Comment #2
zaporylieproof of concept
Comment #3
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedThe 2 year old patch in #2 to admin.inc and views_plugin_query_default.inc does not apply to the latest views 7.x-3.x-dev and if still relevant needs to be rerolled.
Comment #4
Andrew Answer CreditAttribution: Andrew Answer as a volunteer commentedPatch rerolled.