How to allow multiple values in a single value textfield I am using views_conditional module for Drupal 7 and would like to use a comma separated array (i think this is called an array?) of values in the &quot;This value&quot; textfield.
For example, I would like to add a views conditional field that checks for:
If this field...
[type] == Content Type
Is...
Contains
This value...
Apples, (or) Oranges, (or) Bananas
As it is right now, (unless I am missing something) I would need to add 3 separate conditional field. One for each content type (apples, oranges, and bananas) though they are all executing the same function.
(I think) The current definition for the value field is:
$form['equalto'] = array(
  '#type' =&gt; 'textfield',
  '#title' =&gt; t('This value'),
  '#description' =&gt; t('Input a value to compare the field against.  Replacement variables may be used'),
  '#default_value' =&gt; $this-&gt;options['equalto'],
);

I also think the logic for the &quot;Is...&quot; operator in this use case would technically need to be something like &quot;Contains Any&quot;.
(I think) The &quot;Contains&quot; function is defined here:
      // Contains
  case 7:
    if (mb_stripos($r, $equalto) !== FALSE) {
      return $then;
    }
    else {
      return $or;
    }
    break;

Is there a way to simply write a couple of hooks to alter the form, or would i need a full blown module patch?
Any help or pointers would be greatly appreciated! I am pretty new to backend code. I also posted a support request at Drupal.org
There is a patch for this for anyone else looking for a solution.
https://www.drupal.org/project/views_conditional/issues/2690167