diff --git a/views/entityreference.views.inc b/views/entityreference.views.inc index 76cbc2b..b08118d 100644 --- a/views/entityreference.views.inc +++ b/views/entityreference.views.inc @@ -29,6 +29,11 @@ function entityreference_field_views_data($field) { 'title' => t('Referenced Entity'), 'help' => t('A bridge to the @entity entity that is referenced via !field_name', $parameters), ); + // Set the entity id filter to use the in_operator handler with our + // own callback to return the values. + $data[$table_name][$field_name]['filter']['handler'] = 'views_handler_filter_in_operator'; + $data[$table_name][$field_name]['filter']['options callback'] = 'entityreference_options_list'; + $data[$table_name][$field_name]['filter']['options arguments'] = array($field); } }