Created
November 25, 2014 21:54
-
-
Save wizonesolutions/178c7a9be28563044888 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$field_collections = array(); // <--- change to your array of field collection data | |
// Time to save field_collection_item entities. | |
foreach ($field_collections as $field_collection_name => $field_collection_entries) { | |
foreach ($field_collection_entries as $delta => $field_collection) { | |
// Everything should be in place from before. Just save it. | |
$field_collection->save(TRUE); | |
} | |
} | |
node_save($node); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment