Closed (fixed)
Project:
Field collection
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Oct 2011 at 11:07 UTC
Updated:
18 Jan 2012 at 09:20 UTC
This is how the data inside Field Collections look like when printing out $node object from hook_node_presave, update and insert. How can I modify Field Collection fields' data during these hooks?
| Comment | File | Size | Author |
|---|---|---|---|
| field_collection_node_update.png | 29.9 KB | rnyberg |
Comments
Comment #1
danieltome commentedHi,
Here's an answer on Stack Exchange:
http://drupal.stackexchange.com/questions/11062/how-do-i-load-a-field-co...
Basically you need to do:
entity_load('field_collection_item', array($item_id))
Comment #2
rnyberg commented