I'm currently working in a custom video player. For that I've created a content type which uses a field_collection (for the video file and other stuff) and a field_caption for a XML file.
The video file field uses a custom field formatter, which I'm using to theme up the player. I need the field_caption file to be added there so I'm trying to get the node id of the field_section Field Collection in the hook_field_formatter_view() to get that info....with no luck!
If I print $entity->vid from the function parameters I will have NULL, because the field is within a field_section I believe.
Is there a way round this?
Thanks in advance!