bratsun
7/11/2014 - 3:57 PM

Get field collection host entity // $element['#object']->item_id is a field collection id in field template

Get field collection host entity // $element['#object']->item_id is a field collection id in field template

$field_collection_item = entity_load('field_collection_item', array($element['#object']->item_id));
$host_entity = $field_collection_item[$element['#object']->item_id]->hostEntity();

//print dpm($host_entity);