I'm using hook_entity_view_alter(&$build, $type) to unset a couple of fields in a field collection item. My problem is that when I use 'table field-collection items' formatter the fields that I unset still appear, where as if use 'View field-collection items' formatter they don't appear as expected. What could be wrong?

Comments

tim.plunkett’s picture

There are a lot of edge cases like this that need to be addressed. Thanks for the bug report, I will look into this soon.

tim.plunkett’s picture

Status: Active » Fixed

http://drupalcode.org/project/field_collection_table.git/commit/31188cb

Thanks for the bug report. This should fix it. Note I've committed changes in #1257526: Exclude column from table if no items have content as well, so be sure to clear your caches.

If you are removing fields, you'll also be interested in the new checkbox at admin/config/user-interface/field_collection_table.

chalee’s picture

My problem fixed with the patch. Thanks

Status: Fixed » Closed (fixed)

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