Limit filter operators Is there a way to limit the operators for views-filtering for users. I want them to only have "starts-with", "contains" and "same". But not the rest. Do I have to form_alter with a custom module? Or is there some intern way to achieve that?
I don't think there is an option to sort the exposed operators.

You can do it with a custom module using hook_form_alter().

Example:

function module_name_form_alter(&amp;$form, &amp;$form_state, $form_id) {

  if ($form_id == 'views_exposed_form' &amp;&amp; $form_state['view']-&gt;name == 'view_name') {
    unset($form['field_name_filter_op']['#options']['empty']);
    unset($form['field_name_filter_op']['#options']['not empty']);
  }

}


You can find the form details using "dpm()" from devel module.


dpm($form_id);
dpm($form);
dpm($form_state);