From 8656609a4cdda3b1de7f16da737025295041abb9 Mon Sep 17 00:00:00 2001 From: Silvio Date: Tue, 25 Jun 2013 16:26:34 -0300 Subject: Updating feature with two new fields (tag and source) --- .../timelinejs_feature.features.field.inc | 162 +++++++++++++++++++-- 1 file changed, 152 insertions(+), 10 deletions(-) (limited to 'features/timelinejs_feature/timelinejs_feature.features.field.inc') diff --git a/features/timelinejs_feature/timelinejs_feature.features.field.inc b/features/timelinejs_feature/timelinejs_feature.features.field.inc index 9327e02..af7aefa 100644 --- a/features/timelinejs_feature/timelinejs_feature.features.field.inc +++ b/features/timelinejs_feature/timelinejs_feature.features.field.inc @@ -174,7 +174,7 @@ function timelinejs_feature_field_default_fields() { 'module' => 'text', 'settings' => array(), 'type' => 'text_default', - 'weight' => 0, + 'weight' => '0', ), 'teaser' => array( 'label' => 'hidden', @@ -202,7 +202,7 @@ function timelinejs_feature_field_default_fields() { 'summary_rows' => 5, ), 'type' => 'text_textarea_with_summary', - 'weight' => '4', + 'weight' => '5', ), ), ); @@ -253,7 +253,7 @@ function timelinejs_feature_field_default_fields() { 'multiple_to' => '', ), 'type' => 'date_default', - 'weight' => 5, + 'weight' => '5', ), 'teaser' => array( 'label' => 'above', @@ -285,7 +285,7 @@ function timelinejs_feature_field_default_fields() { 'year_range' => '1960:+3', ), 'type' => 'date_popup', - 'weight' => '2', + 'weight' => '3', ), ), ); @@ -332,7 +332,7 @@ function timelinejs_feature_field_default_fields() { 'module' => 'file', 'settings' => array(), 'type' => 'file_default', - 'weight' => 4, + 'weight' => '4', ), 'teaser' => array( 'label' => 'above', @@ -404,10 +404,10 @@ function timelinejs_feature_field_default_fields() { 'module' => 'image', 'settings' => array( 'image_link' => '', - 'image_style' => '', + 'image_style' => 'medium', ), 'type' => 'image', - 'weight' => 3, + 'weight' => '3', ), 'teaser' => array( 'label' => 'above', @@ -436,6 +436,7 @@ function timelinejs_feature_field_default_fields() { 'module' => 'image', 'settings' => array( 'insert' => 0, + 'insert_absolute' => FALSE, 'insert_class' => '', 'insert_default' => 'auto', 'insert_styles' => array( @@ -461,6 +462,75 @@ function timelinejs_feature_field_default_fields() { ), ); + // Exported field: 'node-event-field_tag'. + $fields['node-event-field_tag'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_tag', + 'foreign keys' => array( + 'format' => array( + 'columns' => array( + 'format' => 'format', + ), + 'table' => 'filter_format', + ), + ), + 'indexes' => array( + 'format' => array( + 0 => 'format', + ), + ), + 'locked' => '0', + 'module' => 'text', + 'settings' => array( + 'max_length' => '255', + ), + 'translatable' => '0', + 'type' => 'text', + ), + 'field_instance' => array( + 'bundle' => 'event', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'text', + 'settings' => array(), + 'type' => 'text_default', + 'weight' => 6, + ), + 'teaser' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_tag', + 'label' => 'Tag', + '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: 'node-event-field_timeline'. $fields['node-event-field_timeline'] = array( 'field_config' => array( @@ -521,7 +591,7 @@ function timelinejs_feature_field_default_fields() { 'link' => FALSE, ), 'type' => 'entityreference_label', - 'weight' => 2, + 'weight' => '2', ), 'teaser' => array( 'label' => 'above', @@ -585,13 +655,13 @@ function timelinejs_feature_field_default_fields() { 'label' => 'above', 'settings' => array(), 'type' => 'hidden', - 'weight' => '3', + 'weight' => '2', ), 'teaser' => array( 'label' => 'above', 'settings' => array(), 'type' => 'hidden', - 'weight' => 0, + 'weight' => '2', ), ), 'entity_type' => 'node', @@ -614,6 +684,7 @@ function timelinejs_feature_field_default_fields() { 'module' => 'image', 'settings' => array( 'insert' => 0, + 'insert_absolute' => FALSE, 'insert_class' => '', 'insert_default' => 'auto', 'insert_styles' => array( @@ -634,6 +705,74 @@ function timelinejs_feature_field_default_fields() { 'progress_indicator' => 'throbber', ), 'type' => 'image_image', + 'weight' => '2', + ), + ), + ); + + // Exported field: 'node-timeline-field_source'. + $fields['node-timeline-field_source'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_source', + 'foreign keys' => array( + 'format' => array( + 'columns' => array( + 'format' => 'format', + ), + 'table' => 'filter_format', + ), + ), + 'indexes' => array( + 'format' => array( + 0 => 'format', + ), + ), + 'locked' => '0', + 'module' => 'text', + 'settings' => array( + 'max_length' => '255', + ), + 'translatable' => '0', + 'type' => 'text', + ), + 'field_instance' => array( + 'bundle' => 'timeline', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => 'Fonte opcional caso a linha do tempo seja criada com dados externos.', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => '3', + ), + 'teaser' => array( + 'label' => 'hidden', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => '3', + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_source', + 'label' => 'Fonte', + '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', ), ), @@ -645,8 +784,11 @@ function timelinejs_feature_field_default_fields() { t('Comment'); t('Data'); t('Embarcado'); + t('Fonte'); + t('Fonte opcional caso a linha do tempo seja criada com dados externos.'); t('Imagem'); t('Linha do tempo'); + t('Tag'); return $fields; } -- cgit v1.2.3