I am getting the following php error when trying to featurize a collection field
Parse error: syntax error, unexpected '{' in /opt/sites/sig-trans/drupal-site-jnl-stke/modules/stke_person/stke_person.features.field.inc on line 453
It looks like a seriazlied php array is being put into an array. This may be a field collection module bug I will post bug report there as well.
Here is my stke_person.feature.field.inc
'field_instance' => array(
'bundle' => 'stke_profile',
'default_value' => array(
0 => array(
'entity' => { //<-- this is line 453
"item_id" : null,
"field_name" : "field_stke_collabs",
"field_stke_collab_link" : { "und" : [] },
"field_stke_collab_active" : { "und" : [ { "value" : 0 } ] }
},
),
),
Comments
Comment #1
czigor commentedDuplicate of #1269750: Exporting a Field Collection field with a default value to Features leads to a PHP parse error.