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

czigor’s picture