Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
May be a field collect field issue, but figure features should not be exporting an entity anyway.
'default_value' => array(
0 => array(
'entity' => { // this line
"item_id" : null,
"field_name" : "field_name",
"field_name_amount" : { "und" : [ { "value" : "1" } ] },
"field_name_type" : { "und" : [] }
}, // and line
),
),
Comments
Comment #1
mh86 CreditAttribution: mh86 commentedI can confirm this problem when using a field collection with the embedded widget.
Comment #2
mh86 CreditAttribution: mh86 commentedMoving this bug report to the Entity API module, as it is responsible for the export code.
Comment #3
amitaibuSubscribe
Comment #4
Ciraxis CreditAttribution: Ciraxis commentedsubscribe
Comment #5
stevectorThis looks like the same bug as #1269750: Exporting a Field Collection field with a default value to Features leads to a PHP parse error
There is discussion in that thread as to whether this is a Features bug or an Entity/Field Collection bug.
Comment #6
hefox CreditAttribution: hefox commentedSince that one has discussion