By xcono on
I need get host entity id from field_collection_item. I've tried:
$current_item = entity_load('field_collection_item', array($row->item_id));
$entity_type = entity_get_info('field_collection_item');
list($host_id, $host_vid, $host_bundle) = entity_extract_ids($entity_type, $current_item);
print $host_id;
But "Warning: Illegal offset type in isset or empty in entity_get_info() (line 7367)".
How to get host entity id from field_collection? Help, please :-)
Comments
See comment here to get the
See comment here to get the host entity id for a field_collection item: http://drupal.org/node/1225368#comment-5576220