Custom Views Handler Question

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
tms8707056's picture

I am digging into the Views API to try and customize a filter handler. I am trying to filter a node reference field with multiple values. I have found that the many_to_one handler functions to filter items "such as terms (many terms per node) or roles (many roles per user)". This sounds like what I need since each of my nodes may contain multiple node references on the same field.

Currently, if I filter the node reference field it looks to be using views_handler_filter_in_operator (based on the filtering options presented). This handler is not working the way I would like. How do I attach my modified "many to one" handler to the node reference field type? I cannot find what controls this in the API. Also, is there something that would make the many to one handler not work for this field type? Any assistance or direction is appreciated.

Views Developers

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: