Because the results of hook_field_extra_fields() are cached via _field_info_collate_fields(), when you save a new EVA display, you don't see it on the 'Manage display' tab of your entity/bundle until you clear caches. This process should be automatic.

Comments

dave reid’s picture

This likely depends on #941970: Only set router rebuild needed when something related to routing actually changes landing in Views as currently there is no way for a display plugin to hook into itself being saved or disabled/deleted.

joachim’s picture

What if we did this in options_submit() whenever the entity_type or bundles are changed?

I've tried chucking in a couple of
> cache_clear_all('field_info_fields', 'cache_field');

but they're not doing the trick -- I must be clearing the wrong cache.

klonos’s picture

...coming from #1408518: Manage Display page should list View Display also. I had to actually clear caches each time I updated the display name in order to see my change in the "Manage display" tab of the entity.

mkadin’s picture

Status: Active » Needs review

I believe this will be fixed by the patch in #1301410: Make exposed form available as extra field. Please test.

mkadin’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.