Give the gift of Drupal. All merchandise is 50% off through 2016.
I was not able to find a simpler API that uses a field collection item id to get the node nid containing the field collection item. Currently, the only way I could find is by loading field collection via entity_load.
$model = entity_load_single('field_collection_item', $model_id); $node = $model->hostEntity(); echo $node->nid;
Is there a simpler way to achieve this?
Source of code: http://drupal.stackexchange.com/questions/62877/get-node-id-of-field-col...