diff options
author | Silvio <silvio@socioambiental.org> | 2013-06-25 16:26:34 -0300 |
---|---|---|
committer | Silvio <silvio@socioambiental.org> | 2013-06-25 16:26:34 -0300 |
commit | 8656609a4cdda3b1de7f16da737025295041abb9 (patch) | |
tree | 132a7884ca32848c3cd9960345653384cfdc164c /features/timelinejs_feature | |
parent | 7127b6f8b7e40babc36c8392a2680e13bf702bd8 (diff) | |
download | timelinejs-8656609a4cdda3b1de7f16da737025295041abb9.tar.gz timelinejs-8656609a4cdda3b1de7f16da737025295041abb9.tar.bz2 |
Updating feature with two new fields (tag and source)feature/tags
Diffstat (limited to 'features/timelinejs_feature')
4 files changed, 187 insertions, 14 deletions
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; } diff --git a/features/timelinejs_feature/timelinejs_feature.field_group.inc b/features/timelinejs_feature/timelinejs_feature.field_group.inc index b8c7c81..319b4b4 100644 --- a/features/timelinejs_feature/timelinejs_feature.field_group.inc +++ b/features/timelinejs_feature/timelinejs_feature.field_group.inc @@ -21,7 +21,7 @@ function timelinejs_feature_field_group_info() { $field_group->parent_name = ''; $field_group->data = array( 'label' => 'MÃdia', - 'weight' => '3', + 'weight' => '4', 'children' => array( 0 => 'field_image', 1 => 'field_embed', diff --git a/features/timelinejs_feature/timelinejs_feature.info b/features/timelinejs_feature/timelinejs_feature.info index b1024fd..3e9003d 100644 --- a/features/timelinejs_feature/timelinejs_feature.info +++ b/features/timelinejs_feature/timelinejs_feature.info @@ -14,6 +14,7 @@ dependencies[] = features dependencies[] = field_group dependencies[] = file dependencies[] = image +dependencies[] = isa_widgets_feature dependencies[] = options dependencies[] = strongarm dependencies[] = taxonomy @@ -27,8 +28,10 @@ features[field][] = node-event-body features[field][] = node-event-field_date features[field][] = node-event-field_embed features[field][] = node-event-field_image +features[field][] = node-event-field_tag features[field][] = node-event-field_timeline features[field][] = node-timeline-field_image +features[field][] = node-timeline-field_source features[field_group][] = group_media|node|evento|form features[node][] = event features[node][] = timeline diff --git a/features/timelinejs_feature/timelinejs_feature.strongarm.inc b/features/timelinejs_feature/timelinejs_feature.strongarm.inc index 89a33a3..a95bc20 100644 --- a/features/timelinejs_feature/timelinejs_feature.strongarm.inc +++ b/features/timelinejs_feature/timelinejs_feature.strongarm.inc @@ -113,14 +113,39 @@ function timelinejs_feature_strongarm() { $strongarm->api_version = 1; $strongarm->name = 'field_bundle_settings_node__event'; $strongarm->value = array( - 'view_modes' => array(), + 'view_modes' => array( + 'teaser' => array( + 'custom_settings' => TRUE, + ), + 'full' => array( + 'custom_settings' => FALSE, + ), + 'rss' => array( + 'custom_settings' => FALSE, + ), + 'search_index' => array( + 'custom_settings' => FALSE, + ), + 'search_result' => array( + 'custom_settings' => FALSE, + ), + 'diff_standard' => array( + 'custom_settings' => FALSE, + ), + 'print' => array( + 'custom_settings' => FALSE, + ), + 'token' => array( + 'custom_settings' => FALSE, + ), + ), 'extra_fields' => array( 'form' => array( 'title' => array( 'weight' => '1', ), 'path' => array( - 'weight' => '5', + 'weight' => '6', ), ), 'display' => array(), @@ -155,11 +180,14 @@ function timelinejs_feature_strongarm() { 'token' => array( 'custom_settings' => FALSE, ), + 'diff_standard' => array( + 'custom_settings' => FALSE, + ), ), 'extra_fields' => array( 'form' => array( 'title' => array( - 'weight' => '1', + 'weight' => '0', ), 'path' => array( 'weight' => '5', |