Closed (fixed)
Project:
Field collection
Version:
7.x-1.0-beta4
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Dec 2012 at 19:05 UTC
Updated:
29 Nov 2016 at 13:34 UTC
Jump to comment: Most recent
Comments
Comment #1
truyenle commentedI think I got it.
Instead of
$entity_field[0]['value'] = array_pop(array_pop(field_get_items($entity_type, $entity, 'field_video_url')));
It should be
$entity_field[0]['value'] = array_pop(field_get_items($entity_type, $entity, 'field_video_url'))['url'];
Thanks
Comment #2
jmuzz commented