diff options
author | Silvio <silvio@socioambiental.org> | 2014-11-17 16:20:23 -0200 |
---|---|---|
committer | Silvio <silvio@socioambiental.org> | 2014-11-17 16:20:23 -0200 |
commit | 2a9a1e7982245f48a51a36a6c02242f34d4e6324 (patch) | |
tree | df6fd0a036e961d0ab6c679399133ae9478b5066 /features | |
parent | e586f688fd957969f0a49a9bc38cf2a390fe1747 (diff) | |
download | timelinejs-2a9a1e7982245f48a51a36a6c02242f34d4e6324.tar.gz timelinejs-2a9a1e7982245f48a51a36a6c02242f34d4e6324.tar.bz2 |
Date format support
Diffstat (limited to 'features')
5 files changed, 86 insertions, 9 deletions
diff --git a/features/timelinejs_feature/timelinejs_feature.features.field.inc b/features/timelinejs_feature/timelinejs_feature.features.field.inc index 831f89d..12b0bcf 100644 --- a/features/timelinejs_feature/timelinejs_feature.features.field.inc +++ b/features/timelinejs_feature/timelinejs_feature.features.field.inc @@ -616,6 +616,79 @@ function timelinejs_feature_field_default_fields() { ), ); + // Exported field: 'node-timeline-field_date_format'. + $fields['node-timeline-field_date_format'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_date_format', + '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' => array( + 0 => array( + 'value' => '%Y,%m,%d', + ), + ), + 'deleted' => '0', + 'description' => 'Vide <a href="http://php.net/manual/en/function.strftime.php">strftime()</a>, deixe em branco em caso de dúvidas.', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'text', + 'settings' => array(), + 'type' => 'text_default', + 'weight' => 4, + ), + 'teaser' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_date_format', + 'label' => 'Formato de data', + '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' => '5', + ), + ), + ); + // Exported field: 'node-timeline-field_image'. $fields['node-timeline-field_image'] = array( 'field_config' => array( @@ -782,13 +855,15 @@ function timelinejs_feature_field_default_fields() { // Included for use with string extractors like potx. t('Body'); t('Comment'); - t('Date'); - t('Embeded'); - t('Source'); + t('Data'); + t('Embarcado'); + t('Fonte'); + t('Formato de data'); + t('Imagem'); + t('Linha do tempo'); t('Optional source if the timeline is built using external data.'); - t('Image'); - t('Timeline'); t('Tag'); + t('Vide <a href="http://php.net/manual/en/function.strftime.php">strftime()</a>, deixe em branco em caso de dúvidas.'); return $fields; } diff --git a/features/timelinejs_feature/timelinejs_feature.features.inc b/features/timelinejs_feature/timelinejs_feature.features.inc index 748c3bd..80d1e19 100644 --- a/features/timelinejs_feature/timelinejs_feature.features.inc +++ b/features/timelinejs_feature/timelinejs_feature.features.inc @@ -28,7 +28,7 @@ function timelinejs_feature_node_info() { 'base' => 'node_content', 'description' => t('An event with a date.'), 'has_title' => '1', - 'title_label' => t('Title'), + 'title_label' => t('Título'), 'help' => '', ), 'timeline' => array( @@ -36,7 +36,7 @@ function timelinejs_feature_node_info() { 'base' => 'node_content', 'description' => t('A timeline is a set of events.'), 'has_title' => '1', - 'title_label' => t('Title'), + 'title_label' => t('Título'), 'help' => '', ), ); diff --git a/features/timelinejs_feature/timelinejs_feature.field_group.inc b/features/timelinejs_feature/timelinejs_feature.field_group.inc index 319b4b4..ef09be3 100644 --- a/features/timelinejs_feature/timelinejs_feature.field_group.inc +++ b/features/timelinejs_feature/timelinejs_feature.field_group.inc @@ -31,7 +31,7 @@ function timelinejs_feature_field_group_info() { 'label' => 'Mídia', 'instance_settings' => array( 'required_fields' => 1, - 'classes' => '', + 'classes' => ' group-media field-group-fieldset', 'description' => 'Escolha uma imagem um uma mídia a ser embarcada.', ), 'formatter' => 'collapsible', diff --git a/features/timelinejs_feature/timelinejs_feature.info b/features/timelinejs_feature/timelinejs_feature.info index 796e13c..73f4bde 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 @@ -29,6 +30,7 @@ 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_date_format features[field][] = node-timeline-field_image features[field][] = node-timeline-field_source features[field_group][] = group_media|node|evento|form diff --git a/features/timelinejs_feature/timelinejs_feature.strongarm.inc b/features/timelinejs_feature/timelinejs_feature.strongarm.inc index a95bc20..01479a4 100644 --- a/features/timelinejs_feature/timelinejs_feature.strongarm.inc +++ b/features/timelinejs_feature/timelinejs_feature.strongarm.inc @@ -190,7 +190,7 @@ function timelinejs_feature_strongarm() { 'weight' => '0', ), 'path' => array( - 'weight' => '5', + 'weight' => '6', ), ), 'display' => array(), |