If the entity reference field is based on a view, the views theming will show up in, for instance, the list of values in the filter pane. Here is a screenshot to demonstrate what I'm talking about.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dafeder’s picture

Here's an inelegant patch that does the job...

dafeder’s picture

Status: Active » Needs review
dafeder’s picture

Hmm looks like I messed up the screenshot, here it goes again.

amitaibu’s picture

+++ b/views/entityreference_plugin_style.incundefined
@@ -56,7 +56,7 @@ class entityreference_plugin_style extends views_plugin_style {
+        $results[$values->{$id_field_alias}] = strip_tags(filter_xss_admin(preg_replace('/\s\s+/', ' ', str_replace("\n", '', $this->row_plugin->render($values)))));

Doesn't it strip the output of the view as-well?