Closed (fixed)
Project:
Field collection
Version:
7.x-1.0-beta2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Sep 2011 at 21:00 UTC
Updated:
3 Aug 2016 at 09:35 UTC
Jump to comment: Most recent
Comments
Comment #1
czigor commentedI'm using this function to move a fc. Copying must be a lot trickier because you have to create a new fc for that, get all the properties of the old one etc.
Comment #2
ben coleman commentedComment #3
soncco commentedWhere should I copy that code?
Comment #4
drupalok commentedsorry to reopen this, but i think there is need for more documentation (at least for me...)
could you provide a step by step?
Comment #5
ben coleman commentedComment #6
Tamuren commentedPlease instruct where to insert this code. Thanks.
Comment #7
jmuzz commentedThe latest versions of field collection include support for cloning nodes via the node clone module so give that a try.
It may not be possible to make the code supplied 4 years ago work, as the module includes checks to prevent the host of a field collection item from being changed.
Comment #8
jmuzz commentedComment #10
napche commentedSame issue, alternative solution :
Comment #11
aaronelborg commentedNapche, that looks like it'd only work for D8.
Comment #12
napche commentedCorrect.. my bad.