Closed (duplicate)
Project:
Field collection
Version:
7.x-1.0-beta3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Feb 2012 at 19:39 UTC
Updated:
1 Mar 2012 at 10:50 UTC
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 features bug I will post bug report there as well.
Here is my stke_person.feature.field.inc
/**
* @file
* stke_person.features.field.inc
*/
/**
* Implements hook_field_default_fields().
*/
function stke_person_field_default_fields() {
$fields = array();
// Exported field: 'field_collection_item-field_stke_collabs-field_stke_collab_active'
$fields['field_collection_item-field_stke_collabs-field_stke_collab_active'] = array(
'field_config' => array(
'active' => '1',
'cardinality' => '1',
'deleted' => '0',
'entity_types' => array(),
'field_name' => 'field_stke_collab_active',
'foreign keys' => array(),
'indexes' => array(
'value' => array(
0 => 'value',
),
),
'module' => 'list',
'settings' => array(
'allowed_values' => array(
0 => 'Inactive',
1 => 'Active',
),
'allowed_values_function' => '',
'profile2_private' => FALSE,
),
'translatable' => '0',
'type' => 'list_boolean',
),
'field_instance' => array(
'bundle' => 'field_stke_collabs',
'default_value' => array(
0 => array(
'value' => 0,
),
),
'deleted' => '0',
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => '1',
),
),
'entity_type' => 'field_collection_item',
'field_name' => 'field_stke_collab_active',
'label' => 'Active?',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(
'display_label' => 1,
),
'type' => 'options_onoff',
'weight' => '2',
),
),
);
// Exported field: 'field_collection_item-field_stke_collabs-field_stke_collab_link'
$fields['field_collection_item-field_stke_collabs-field_stke_collab_link'] = array(
'field_config' => array(
'active' => '1',
'cardinality' => '1',
'deleted' => '0',
'entity_types' => array(),
'field_name' => 'field_stke_collab_link',
'foreign keys' => array(),
'indexes' => array(),
'module' => 'link',
'settings' => array(
'attributes' => array(
'class' => '',
'rel' => '',
'target' => 'default',
),
'display' => array(
'url_cutoff' => 80,
),
'enable_tokens' => 1,
'profile2_private' => FALSE,
'title' => 'optional',
'title_maxlength' => 128,
'title_value' => '',
'url' => 0,
),
'translatable' => '0',
'type' => 'link_field',
),
'field_instance' => array(
'bundle' => 'field_stke_collabs',
'default_value' => NULL,
'deleted' => '0',
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'link',
'settings' => array(),
'type' => 'link_default',
'weight' => '0',
),
),
'entity_type' => 'field_collection_item',
'field_name' => 'field_stke_collab_link',
'label' => 'Collaborator Link',
'required' => 0,
'settings' => array(
'attributes' => array(
'class' => '',
'configurable_title' => 0,
'rel' => '',
'target' => '_blank',
'title' => '',
),
'display' => array(
'url_cutoff' => '80',
),
'enable_tokens' => 1,
'title' => 'required',
'title_maxlength' => '128',
'title_value' => '',
'url' => 0,
'user_register_form' => FALSE,
'validate_url' => 1,
),
'widget' => array(
'active' => 0,
'module' => 'link',
'settings' => array(),
'type' => 'link_field',
'weight' => '1',
),
),
);
// Exported field: 'field_collection_item-field_stke_labs-field_stke_lab_active'
$fields['field_collection_item-field_stke_labs-field_stke_lab_active'] = array(
'field_config' => array(
'active' => '1',
'cardinality' => '1',
'deleted' => '0',
'entity_types' => array(),
'field_name' => 'field_stke_lab_active',
'foreign keys' => array(),
'indexes' => array(
'value' => array(
0 => 'value',
),
),
'module' => 'list',
'settings' => array(
'allowed_values' => array(
0 => 'Inactive',
1 => 'Active',
),
'allowed_values_function' => '',
'profile2_private' => FALSE,
),
'translatable' => '0',
'type' => 'list_boolean',
),
'field_instance' => array(
'bundle' => 'field_stke_labs',
'default_value' => array(
0 => array(
'value' => 0,
),
),
'deleted' => '0',
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => '1',
),
),
'entity_type' => 'field_collection_item',
'field_name' => 'field_stke_lab_active',
'label' => 'Active?',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(
'display_label' => 1,
),
'type' => 'options_onoff',
'weight' => '2',
),
),
);
// Exported field: 'field_collection_item-field_stke_labs-field_stke_lab_link'
$fields['field_collection_item-field_stke_labs-field_stke_lab_link'] = array(
'field_config' => array(
'active' => '1',
'cardinality' => '1',
'deleted' => '0',
'entity_types' => array(),
'field_name' => 'field_stke_lab_link',
'foreign keys' => array(),
'indexes' => array(),
'module' => 'link',
'settings' => array(
'attributes' => array(
'class' => '',
'rel' => '',
'target' => 'default',
),
'display' => array(
'url_cutoff' => 80,
),
'enable_tokens' => 1,
'profile2_private' => FALSE,
'title' => 'optional',
'title_maxlength' => 128,
'title_value' => '',
'url' => 0,
),
'translatable' => '0',
'type' => 'link_field',
),
'field_instance' => array(
'bundle' => 'field_stke_labs',
'default_value' => NULL,
'deleted' => '0',
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'link',
'settings' => array(),
'type' => 'link_default',
'weight' => '0',
),
),
'entity_type' => 'field_collection_item',
'field_name' => 'field_stke_lab_link',
'label' => 'Lab Link',
'required' => 0,
'settings' => array(
'attributes' => array(
'class' => '',
'configurable_title' => 0,
'rel' => '',
'target' => '_blank',
'title' => '',
),
'display' => array(
'url_cutoff' => '80',
),
'enable_tokens' => 1,
'title' => 'required',
'title_maxlength' => '128',
'title_value' => '',
'url' => 0,
'user_register_form' => FALSE,
'validate_url' => 1,
),
'widget' => array(
'active' => 0,
'module' => 'link',
'settings' => array(),
'type' => 'link_field',
'weight' => '1',
),
),
);
// Exported field: 'profile2-stke_profile-field_skte_last_name'
$fields['profile2-stke_profile-field_skte_last_name'] = array(
'field_config' => array(
'active' => '1',
'cardinality' => '1',
'deleted' => '0',
'entity_types' => array(),
'field_name' => 'field_skte_last_name',
'field_permissions' => array(
'type' => '0',
),
'foreign keys' => array(
'format' => array(
'columns' => array(
'format' => 'format',
),
'table' => 'filter_format',
),
),
'indexes' => array(
'format' => array(
0 => 'format',
),
),
'module' => 'text',
'settings' => array(
'max_length' => '255',
'profile2_private' => 0,
),
'translatable' => '0',
'type' => 'text',
),
'field_instance' => array(
'bundle' => 'stke_profile',
'default_value' => NULL,
'deleted' => '0',
'description' => '',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => '3',
),
),
'entity_type' => 'profile2',
'field_name' => 'field_skte_last_name',
'label' => 'Last Name',
'required' => 0,
'settings' => array(
'text_processing' => '0',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'size' => '60',
),
'type' => 'text_textfield',
'weight' => '3',
),
),
);
// Exported field: 'profile2-stke_profile-field_stke_address'
$fields['profile2-stke_profile-field_stke_address'] = array(
'field_config' => array(
'active' => '1',
'cardinality' => '1',
'deleted' => '0',
'entity_types' => array(),
'field_name' => 'field_stke_address',
'foreign keys' => array(),
'indexes' => array(),
'module' => 'addressfield',
'settings' => array(
'profile2_private' => 0,
),
'translatable' => '0',
'type' => 'addressfield',
),
'field_instance' => array(
'bundle' => 'stke_profile',
'default_value' => array(
0 => array(
'element_key' => 'profile2|stke_profile|field_stke_address|und|0',
'thoroughfare' => '',
'premise' => '',
'locality' => '',
'administrative_area' => '',
'postal_code' => '',
'country' => 'US',
),
),
'deleted' => '0',
'description' => '',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'addressfield',
'settings' => array(
'format_handlers' => array(
0 => 'address',
),
'use_widget_handlers' => 1,
),
'type' => 'addressfield_default',
'weight' => '13',
),
),
'entity_type' => 'profile2',
'field_name' => 'field_stke_address',
'label' => 'Address',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'addressfield',
'settings' => array(
'available_countries' => array(),
'format_handlers' => array(
'address' => 'address',
'name-full' => 0,
'name-oneline' => 0,
'organisation' => 0,
),
),
'type' => 'addressfield_standard',
'weight' => '14',
),
),
);
// Exported field: 'profile2-stke_profile-field_stke_collabs'
$fields['profile2-stke_profile-field_stke_collabs'] = array(
'field_config' => array(
'active' => '1',
'cardinality' => '-1',
'deleted' => '0',
'entity_types' => array(),
'field_name' => 'field_stke_collabs',
'foreign keys' => array(),
'indexes' => array(),
'module' => 'field_collection',
'settings' => array(
'hide_blank_items' => 1,
'path' => '',
'profile2_private' => 0,
),
'translatable' => '0',
'type' => 'field_collection',
),
'field_instance' => array(
'bundle' => 'stke_profile',
'default_value' => array(
0 => array(
'entity' => { //<---THIS BRACKET is breaking php
"item_id" : null,
"field_name" : "field_stke_collabs",
"field_stke_collab_link" : { "und" : [] },
"field_stke_collab_active" : { "und" : [ { "value" : 0 } ] }
},
),
),
'deleted' => '0',
'description' => '',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'field_collection',
'settings' => array(
'add' => 'Add',
'delete' => 'Delete',
'description' => TRUE,
'edit' => 'Edit',
'view_mode' => 'full',
),
'type' => 'field_collection_view',
'weight' => '17',
),
),
'entity_type' => 'profile2',
'field_name' => 'field_stke_collabs',
'label' => 'My Collaborators',
'required' => 0,
'settings' => array(
'default_value_function' => 'field_collection_default_value_function',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 0,
'module' => 'field_collection',
'settings' => array(),
'type' => 'field_collection_embed',
'weight' => '10',
),
),
);
// Exported field: 'profile2-stke_profile-field_stke_deceased'
$fields['profile2-stke_profile-field_stke_deceased'] = array(
'field_config' => array(
'active' => '1',
'cardinality' => '1',
'deleted' => '0',
'entity_types' => array(),
'field_name' => 'field_stke_deceased',
'foreign keys' => array(),
'indexes' => array(
'value' => array(
0 => 'value',
),
),
'module' => 'list',
'settings' => array(
'allowed_values' => array(
0 => 'Living',
1 => 'Deceased',
),
'allowed_values_function' => '',
'profile2_private' => 0,
),
'translatable' => '0',
'type' => 'list_boolean',
),
'field_instance' => array(
'bundle' => 'stke_profile',
'default_value' => array(
0 => array(
'value' => 0,
),
),
'deleted' => '0',
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'settings' => array(),
'type' => 'hidden',
'weight' => '18',
),
),
'entity_type' => 'profile2',
'field_name' => 'field_stke_deceased',
'label' => 'Deceased?',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(
'display_label' => 1,
),
'type' => 'options_onoff',
'weight' => '21',
),
),
);
// Exported field: 'profile2-stke_profile-field_stke_department'
$fields['profile2-stke_profile-field_stke_department'] = array(
'field_config' => array(
'active' => '1',
'cardinality' => '1',
'deleted' => '0',
'entity_types' => array(),
'field_name' => 'field_stke_department',
'field_permissions' => array(
'type' => '0',
),
'foreign keys' => array(
'format' => array(
'columns' => array(
'format' => 'format',
),
'table' => 'filter_format',
),
),
'indexes' => array(
'format' => array(
0 => 'format',
),
),
'module' => 'text',
'settings' => array(
'max_length' => '255',
'profile2_private' => 0,
),
'translatable' => '0',
'type' => 'text',
),
'field_instance' => array(
'bundle' => 'stke_profile',
'default_value' => NULL,
'deleted' => '0',
'description' => '',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => '6',
),
),
'entity_type' => 'profile2',
'field_name' => 'field_stke_department',
'label' => 'Department',
'required' => 0,
'settings' => array(
'text_processing' => '0',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'size' => '60',
),
'type' => 'text_textfield',
'weight' => '19',
),
),
);
// Exported field: 'profile2-stke_profile-field_stke_desc'
$fields['profile2-stke_profile-field_stke_desc'] = array(
'field_config' => array(
'active' => '1',
'cardinality' => '1',
'deleted' => '0',
'entity_types' => array(),
'field_name' => 'field_stke_desc',
'foreign keys' => array(
'format' => array(
'columns' => array(
'format' => 'format',
),
'table' => 'filter_format',
),
),
'indexes' => array(
'format' => array(
0 => 'format',
),
),
'module' => 'text',
'settings' => array(
'profile2_private' => 0,
),
'translatable' => '0',
'type' => 'text_long',
),
'field_instance' => array(
'bundle' => 'stke_profile',
'default_value' => NULL,
'deleted' => '0',
'description' => '',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => '10',
),
),
'entity_type' => 'profile2',
'field_name' => 'field_stke_desc',
'label' => 'Description',
'required' => 0,
'settings' => array(
'text_processing' => '0',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'rows' => '5',
),
'type' => 'text_textarea',
'weight' => '6',
),
),
);
// Exported field: 'profile2-stke_profile-field_stke_editor_note'
$fields['profile2-stke_profile-field_stke_editor_note'] = array(
'field_config' => array(
'active' => '1',
'cardinality' => '1',
'deleted' => '0',
'entity_types' => array(),
'field_name' => 'field_stke_editor_note',
'foreign keys' => array(
'format' => array(
'columns' => array(
'format' => 'format',
),
'table' => 'filter_format',
),
),
'indexes' => array(
'format' => array(
0 => 'format',
),
),
'module' => 'text',
'settings' => array(
'profile2_private' => 0,
),
'translatable' => '0',
'type' => 'text_long',
),
'field_instance' => array(
'bundle' => 'stke_profile',
'default_value' => NULL,
'deleted' => '0',
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => '19',
),
),
'entity_type' => 'profile2',
'field_name' => 'field_stke_editor_note',
'label' => 'Editor\'s Notes',
'required' => 0,
'settings' => array(
'text_processing' => '0',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'rows' => '5',
),
'type' => 'text_textarea',
'weight' => '20',
),
),
);
// Exported field: 'profile2-stke_profile-field_stke_email'
$fields['profile2-stke_profile-field_stke_email'] = array(
'field_config' => array(
'active' => '1',
'cardinality' => '1',
'deleted' => '0',
'entity_types' => array(),
'field_name' => 'field_stke_email',
'field_permissions' => array(
'type' => '0',
),
'foreign keys' => array(),
'indexes' => array(),
'module' => 'email',
'settings' => array(
'profile2_private' => 0,
),
'translatable' => '0',
'type' => 'email',
),
'field_instance' => array(
'bundle' => 'stke_profile',
'default_value' => NULL,
'deleted' => '0',
'description' => '',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'email',
'settings' => array(),
'type' => 'email_contact',
'weight' => '4',
),
),
'entity_type' => 'profile2',
'field_name' => 'field_stke_email',
'label' => 'Email',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'email',
'settings' => array(
'size' => '60',
),
'type' => 'email_textfield',
'weight' => '4',
),
),
);
// Exported field: 'profile2-stke_profile-field_stke_fax_number'
$fields['profile2-stke_profile-field_stke_fax_number'] = array(
'field_config' => array(
'active' => '1',
'cardinality' => '1',
'deleted' => '0',
'entity_types' => array(),
'field_name' => 'field_stke_fax_number',
'field_permissions' => array(
'type' => '0',
),
'foreign keys' => array(
'format' => array(
'columns' => array(
'format' => 'format',
),
'table' => 'filter_format',
),
),
'indexes' => array(
'format' => array(
0 => 'format',
),
),
'module' => 'text',
'settings' => array(
'max_length' => '255',
'profile2_private' => 0,
),
'translatable' => '0',
'type' => 'text',
),
'field_instance' => array(
'bundle' => 'stke_profile',
'default_value' => NULL,
'deleted' => '0',
'description' => '',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => '12',
),
),
'entity_type' => 'profile2',
'field_name' => 'field_stke_fax_number',
'label' => 'Fax Number',
'required' => 0,
'settings' => array(
'text_processing' => '0',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'size' => '60',
),
'type' => 'text_textfield',
'weight' => '13',
),
),
);
// Exported field: 'profile2-stke_profile-field_stke_first_name'
$fields['profile2-stke_profile-field_stke_first_name'] = array(
'field_config' => array(
'active' => '1',
'cardinality' => '1',
'deleted' => '0',
'entity_types' => array(),
'field_name' => 'field_stke_first_name',
'field_permissions' => array(
'type' => '0',
),
'foreign keys' => array(
'format' => array(
'columns' => array(
'format' => 'format',
),
'table' => 'filter_format',
),
),
'indexes' => array(
'format' => array(
0 => 'format',
),
),
'module' => 'text',
'settings' => array(
'max_length' => '255',
'profile2_private' => 0,
),
'translatable' => '0',
'type' => 'text',
),
'field_instance' => array(
'bundle' => 'stke_profile',
'default_value' => NULL,
'deleted' => '0',
'description' => '',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => '2',
),
),
'entity_type' => 'profile2',
'field_name' => 'field_stke_first_name',
'label' => 'First Name',
'required' => 0,
'settings' => array(
'text_processing' => '0',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'size' => '60',
),
'type' => 'text_textfield',
'weight' => '2',
),
),
);
// Exported field: 'profile2-stke_profile-field_stke_institution'
$fields['profile2-stke_profile-field_stke_institution'] = array(
'field_config' => array(
'active' => '1',
'cardinality' => '-1',
'deleted' => '0',
'entity_types' => array(),
'field_name' => 'field_stke_institution',
'field_permissions' => array(
'type' => '0',
),
'foreign keys' => array(
'format' => array(
'columns' => array(
'format' => 'format',
),
'table' => 'filter_format',
),
),
'indexes' => array(
'format' => array(
0 => 'format',
),
),
'module' => 'text',
'settings' => array(
'max_length' => '255',
'profile2_private' => 0,
),
'translatable' => '0',
'type' => 'text',
),
'field_instance' => array(
'bundle' => 'stke_profile',
'default_value' => NULL,
'deleted' => '0',
'description' => '',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => '7',
),
),
'entity_type' => 'profile2',
'field_name' => 'field_stke_institution',
'label' => 'Institution',
'required' => 0,
'settings' => array(
'text_processing' => '0',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'size' => '60',
),
'type' => 'text_textfield',
'weight' => '18',
),
),
);
// Exported field: 'profile2-stke_profile-field_stke_keywords'
$fields['profile2-stke_profile-field_stke_keywords'] = array(
'field_config' => array(
'active' => '1',
'cardinality' => '-1',
'deleted' => '0',
'entity_types' => array(),
'field_name' => 'field_stke_keywords',
'field_permissions' => array(
'type' => '0',
),
'foreign keys' => array(
'tid' => array(
'columns' => array(
'tid' => 'tid',
),
'table' => 'taxonomy_term_data',
),
),
'indexes' => array(
'tid' => array(
0 => 'tid',
),
),
'module' => 'taxonomy',
'settings' => array(
'allowed_values' => array(
0 => array(
'vocabulary' => 'stke_person_keywords',
'parent' => '0',
),
),
'profile2_private' => 0,
),
'translatable' => '0',
'type' => 'taxonomy_term_reference',
),
'field_instance' => array(
'bundle' => 'stke_profile',
'default_value' => NULL,
'deleted' => '0',
'description' => '',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'taxonomy',
'settings' => array(),
'type' => 'taxonomy_term_reference_link',
'weight' => '9',
),
),
'entity_type' => 'profile2',
'field_name' => 'field_stke_keywords',
'label' => 'Keywords',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'taxonomy',
'settings' => array(
'autocomplete_path' => 'taxonomy/autocomplete',
'size' => 60,
),
'type' => 'taxonomy_autocomplete',
'weight' => '11',
),
),
);
// Exported field: 'profile2-stke_profile-field_stke_labs'
$fields['profile2-stke_profile-field_stke_labs'] = array(
'field_config' => array(
'active' => '1',
'cardinality' => '-1',
'deleted' => '0',
'entity_types' => array(),
'field_name' => 'field_stke_labs',
'foreign keys' => array(),
'indexes' => array(),
'module' => 'field_collection',
'settings' => array(
'hide_blank_items' => 1,
'path' => '',
'profile2_private' => 0,
),
'translatable' => '0',
'type' => 'field_collection',
),
'field_instance' => array(
'bundle' => 'stke_profile',
'default_value' => array(
0 => array(
'entity' => {
"item_id" : null,
"field_name" : "field_stke_labs",
"field_stke_lab_link" : { "und" : [] },
"field_stke_lab_active" : { "und" : [ { "value" : 0 } ] }
},
),
),
'deleted' => '0',
'description' => '',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'field_collection',
'settings' => array(
'add' => 'Add',
'delete' => 'Delete',
'description' => TRUE,
'edit' => 'Edit',
'view_mode' => 'full',
),
'type' => 'field_collection_view',
'weight' => '16',
),
),
'entity_type' => 'profile2',
'field_name' => 'field_stke_labs',
'label' => 'My Labs',
'required' => 0,
'settings' => array(
'default_value_function' => 'field_collection_default_value_function',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 0,
'module' => 'field_collection',
'settings' => array(),
'type' => 'field_collection_embed',
'weight' => '9',
),
),
);
// Exported field: 'profile2-stke_profile-field_stke_peop_approved'
$fields['profile2-stke_profile-field_stke_peop_approved'] = array(
'field_config' => array(
'active' => '1',
'cardinality' => '1',
'deleted' => '0',
'entity_types' => array(),
'field_name' => 'field_stke_peop_approved',
'foreign keys' => array(),
'indexes' => array(
'value' => array(
0 => 'value',
),
),
'module' => 'list',
'settings' => array(
'allowed_values' => array(
0 => 'Awaiting approval',
1 => 'Approved',
),
'allowed_values_function' => '',
'profile2_private' => 0,
),
'translatable' => '0',
'type' => 'list_boolean',
),
'field_instance' => array(
'bundle' => 'stke_profile',
'default_value' => array(
0 => array(
'value' => 1,
),
),
'deleted' => '0',
'description' => '',
'display' => array(
'default' => array(
'label' => 'inline',
'settings' => array(),
'type' => 'hidden',
'weight' => '20',
),
),
'entity_type' => 'profile2',
'field_name' => 'field_stke_peop_approved',
'label' => 'Approved',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(
'display_label' => 0,
),
'type' => 'options_onoff',
'weight' => '0',
),
),
);
// Exported field: 'profile2-stke_profile-field_stke_peop_cv'
$fields['profile2-stke_profile-field_stke_peop_cv'] = array(
'field_config' => array(
'active' => '1',
'cardinality' => '1',
'deleted' => '0',
'entity_types' => array(),
'field_name' => 'field_stke_peop_cv',
'foreign keys' => array(
'fid' => array(
'columns' => array(
'fid' => 'fid',
),
'table' => 'file_managed',
),
),
'indexes' => array(
'fid' => array(
0 => 'fid',
),
),
'module' => 'file',
'settings' => array(
'display_default' => 0,
'display_field' => 0,
'profile2_private' => 0,
'uri_scheme' => 'public',
),
'translatable' => '0',
'type' => 'file',
),
'field_instance' => array(
'bundle' => 'stke_profile',
'deleted' => '0',
'description' => 'Upload a pdf version of your CV here. ',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'file',
'settings' => array(),
'type' => 'file_default',
'weight' => '15',
),
),
'entity_type' => 'profile2',
'field_name' => 'field_stke_peop_cv',
'label' => 'My CV',
'required' => 0,
'settings' => array(
'description_field' => 0,
'file_directory' => 'user/cv',
'file_extensions' => 'pdf',
'max_filesize' => '',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'file',
'settings' => array(
'progress_indicator' => 'throbber',
),
'type' => 'file_generic',
'weight' => '8',
),
),
);
// Exported field: 'profile2-stke_profile-field_stke_peop_photo'
$fields['profile2-stke_profile-field_stke_peop_photo'] = array(
'field_config' => array(
'active' => '1',
'cardinality' => '1',
'deleted' => '0',
'entity_types' => array(),
'field_name' => 'field_stke_peop_photo',
'foreign keys' => array(
'fid' => array(
'columns' => array(
'fid' => 'fid',
),
'table' => 'file_managed',
),
),
'indexes' => array(
'fid' => array(
0 => 'fid',
),
),
'module' => 'image',
'settings' => array(
'default_image' => 0,
'profile2_private' => 0,
'uri_scheme' => 'public',
),
'translatable' => '0',
'type' => 'image',
),
'field_instance' => array(
'bundle' => 'stke_profile',
'deleted' => '0',
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'image',
'settings' => array(
'image_link' => '',
'image_style' => 'portrait_175x225',
),
'type' => 'image',
'weight' => '0',
),
),
'entity_type' => 'profile2',
'field_name' => 'field_stke_peop_photo',
'label' => 'My Photo',
'required' => 0,
'settings' => array(
'alt_field' => 0,
'file_directory' => 'user/photo',
'file_extensions' => 'png gif jpg jpeg',
'max_filesize' => '',
'max_resolution' => '',
'min_resolution' => '175x225',
'title_field' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'imagefield_crop',
'settings' => array(
'collapsible' => '2',
'croparea' => '500x500',
'enforce_minimum' => 1,
'enforce_ratio' => 1,
'preview_image_style' => 'portrait_175x225',
'progress_indicator' => 'throbber',
'resolution' => '175x225',
),
'type' => 'imagefield_crop_widget',
'weight' => '7',
),
),
);
// Exported field: 'profile2-stke_profile-field_stke_phone'
$fields['profile2-stke_profile-field_stke_phone'] = array(
'field_config' => array(
'active' => '1',
'cardinality' => '1',
'deleted' => '0',
'entity_types' => array(),
'field_name' => 'field_stke_phone',
'field_permissions' => array(
'type' => '0',
),
'foreign keys' => array(
'format' => array(
'columns' => array(
'format' => 'format',
),
'table' => 'filter_format',
),
),
'indexes' => array(
'format' => array(
0 => 'format',
),
),
'module' => 'text',
'settings' => array(
'max_length' => '255',
'profile2_private' => 0,
),
'translatable' => '0',
'type' => 'text',
),
'field_instance' => array(
'bundle' => 'stke_profile',
'default_value' => NULL,
'deleted' => '0',
'description' => '',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => '11',
),
),
'entity_type' => 'profile2',
'field_name' => 'field_stke_phone',
'label' => 'Phone Number',
'required' => 0,
'settings' => array(
'text_processing' => '0',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'size' => '60',
),
'type' => 'text_textfield',
'weight' => '12',
),
),
);
// Exported field: 'profile2-stke_profile-field_stke_position'
$fields['profile2-stke_profile-field_stke_position'] = array(
'field_config' => array(
'active' => '1',
'cardinality' => '1',
'deleted' => '0',
'entity_types' => array(),
'field_name' => 'field_stke_position',
'field_permissions' => array(
'type' => '0',
),
'foreign keys' => array(),
'indexes' => array(
'value' => array(
0 => 'value',
),
),
'module' => 'list',
'settings' => array(
'allowed_values' => array(
0 => 'Information not supplied',
1 => 'Graduate Student',
2 => 'Medical Student',
3 => 'Undergraduate Student',
4 => 'Postdoctoral Researcher',
5 => 'Research Scientist',
6 => 'Medical Doctor',
7 => 'Clinical Researcher',
8 => 'Research Assistant',
9 => 'Press or Media',
10 => 'Teacher or Educator',
11 => 'Healthcare Professional',
12 => 'Lay Person',
13 => 'Retiree',
14 => 'Other',
),
'allowed_values_function' => '',
'profile2_private' => 0,
),
'translatable' => '0',
'type' => 'list_text',
),
'field_instance' => array(
'bundle' => 'stke_profile',
'default_value' => NULL,
'deleted' => '0',
'description' => '',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => '1',
),
),
'entity_type' => 'profile2',
'field_name' => 'field_stke_position',
'label' => 'Position',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_select',
'weight' => '16',
),
),
);
// Exported field: 'profile2-stke_profile-field_stke_resource_id'
$fields['profile2-stke_profile-field_stke_resource_id'] = array(
'field_config' => array(
'active' => '1',
'cardinality' => '1',
'deleted' => '0',
'entity_types' => array(),
'field_name' => 'field_stke_resource_id',
'field_permissions' => array(
'type' => '0',
),
'foreign keys' => array(
'format' => array(
'columns' => array(
'format' => 'format',
),
'table' => 'filter_format',
),
),
'indexes' => array(
'format' => array(
0 => 'format',
),
),
'module' => 'text',
'settings' => array(
'max_length' => '255',
'profile2_private' => 0,
),
'translatable' => '0',
'type' => 'text',
),
'field_instance' => array(
'bundle' => 'stke_profile',
'default_value' => NULL,
'deleted' => '0',
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => '21',
),
),
'entity_type' => 'profile2',
'field_name' => 'field_stke_resource_id',
'label' => 'Resource ID',
'required' => 0,
'settings' => array(
'text_processing' => '0',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'size' => '60',
),
'type' => 'text_textfield',
'weight' => '1',
),
),
);
// Exported field: 'profile2-stke_profile-field_stke_type_inst'
$fields['profile2-stke_profile-field_stke_type_inst'] = array(
'field_config' => array(
'active' => '1',
'cardinality' => '1',
'deleted' => '0',
'entity_types' => array(),
'field_name' => 'field_stke_type_inst',
'field_permissions' => array(
'type' => '0',
),
'foreign keys' => array(),
'indexes' => array(
'value' => array(
0 => 'value',
),
),
'module' => 'list',
'settings' => array(
'allowed_values' => array(
0 => 'Information not supplied',
1 => 'University Graduate School',
2 => 'University Medical School or Hospital',
3 => 'College or University (Undergraduate)',
4 => 'Non-academic Research Institution',
5 => 'Biotechnology or Pharmaceutical Company',
6 => 'Clinical Laboratory',
7 => 'Healthcare Facility',
8 => 'Government Organization',
9 => 'Press or Media Organization',
10 => 'Other',
),
'allowed_values_function' => '',
'profile2_private' => 0,
),
'translatable' => '0',
'type' => 'list_text',
),
'field_instance' => array(
'bundle' => 'stke_profile',
'default_value' => NULL,
'deleted' => '0',
'description' => '',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => '8',
),
),
'entity_type' => 'profile2',
'field_name' => 'field_stke_type_inst',
'label' => 'Type Of Institution',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_select',
'weight' => '17',
),
),
);
// Exported field: 'profile2-stke_profile-field_stke_webpage'
$fields['profile2-stke_profile-field_stke_webpage'] = array(
'field_config' => array(
'active' => '1',
'cardinality' => '1',
'deleted' => '0',
'entity_types' => array(),
'field_name' => 'field_stke_webpage',
'field_permissions' => array(
'type' => '0',
),
'foreign keys' => array(),
'indexes' => array(),
'module' => 'link',
'settings' => array(
'attributes' => array(
'class' => '',
'rel' => '',
'target' => 'default',
),
'display' => array(
'url_cutoff' => 80,
),
'enable_tokens' => 1,
'profile2_private' => 0,
'title' => 'optional',
'title_maxlength' => 128,
'title_value' => '',
'url' => 0,
),
'translatable' => '0',
'type' => 'link_field',
),
'field_instance' => array(
'bundle' => 'stke_profile',
'default_value' => NULL,
'deleted' => '0',
'description' => '',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'link',
'settings' => array(),
'type' => 'link_default',
'weight' => '5',
),
),
'entity_type' => 'profile2',
'field_name' => 'field_stke_webpage',
'label' => 'Web Page',
'required' => 0,
'settings' => array(
'attributes' => array(
'class' => '',
'configurable_title' => 0,
'rel' => '',
'target' => 'default',
'title' => '',
),
'display' => array(
'url_cutoff' => '80',
),
'enable_tokens' => 1,
'title' => 'optional',
'title_maxlength' => '128',
'title_value' => '',
'url' => 0,
'user_register_form' => FALSE,
'validate_url' => 1,
),
'widget' => array(
'active' => 0,
'module' => 'link',
'settings' => array(),
'type' => 'link_field',
'weight' => '5',
),
),
);
// Exported field: 'profile2-stke_profile-field_stke_world_region'
$fields['profile2-stke_profile-field_stke_world_region'] = array(
'field_config' => array(
'active' => '1',
'cardinality' => '1',
'deleted' => '0',
'entity_types' => array(),
'field_name' => 'field_stke_world_region',
'field_permissions' => array(
'type' => '0',
),
'foreign keys' => array(),
'indexes' => array(
'value' => array(
0 => 'value',
),
),
'module' => 'list',
'settings' => array(
'allowed_values' => array(
0 => 'Information not supplied',
1 => 'Africa',
2 => 'Asia',
3 => 'Canada',
4 => 'Europe',
5 => 'Latin America',
6 => 'Middle East',
7 => 'South Pacific',
8 => 'United States',
),
'allowed_values_function' => '',
'profile2_private' => 0,
),
'translatable' => '0',
'type' => 'list_text',
),
'field_instance' => array(
'bundle' => 'stke_profile',
'default_value' => NULL,
'deleted' => '0',
'description' => '',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => '14',
),
),
'entity_type' => 'profile2',
'field_name' => 'field_stke_world_region',
'label' => 'World Region',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_select',
'weight' => '15',
),
),
);
// Translatables
// Included for use with string extractors like potx.
t('Active?');
t('Address');
t('Approved');
t('Collaborator Link');
t('Deceased?');
t('Department');
t('Description');
t('Editor\'s Notes');
t('Email');
t('Fax Number');
t('First Name');
t('Institution');
t('Keywords');
t('Lab Link');
t('Last Name');
t('My CV');
t('My Collaborators');
t('My Labs');
t('My Photo');
t('Phone Number');
t('Position');
t('Resource ID');
t('Type Of Institution');
t('Upload a pdf version of your CV here. ');
t('Web Page');
t('World Region');
return $fields;
}
Comments
Comment #1
pwaterz commentedI 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 features bug I will post bug report there as well.
Here is my stke_person.feature.field.inc
Comment #2
pwaterz commentedI 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 features bug I will post bug report there as well.
Here is my stke_person.feature.field.inc
Comment #3
pwaterz commentedOk drupal is not letting me post my comment
Comment #4
colincalnan commentedi have the exact same problem, this is preventing me from using this field! Any ideas on what's going wrong here. I changed it to a structured PHP array but that causes other error later
Comment #5
torotil commentedActually it's in JSON syntax instead of PHP syntax. I'm seeing the same issue.
@pwaterz could you provide the link for the bug report in the features project?
Comment #6
pwaterz commentedhttp://drupal.org/node/1452404
Comment #7
torotil commentedthanks. In the meantime I've found #1269750: Exporting a Field Collection field with a default value to Features leads to a PHP parse error which seems to be the very same issue and more active. Also it seems to be a problem in features itself.