Removed unnecessary fields, added vignette field, display vignette instead of video thumb when available

This commit is contained in:
2017-03-07 19:22:18 +01:00
parent 8b485f112e
commit 35581e8e57
6 changed files with 316 additions and 259 deletions
@@ -223,121 +223,6 @@ function clameurs_field_default_field_instances() {
),
);
// Exported field_instance: 'node-documentair-body'.
$field_instances['node-documentair-body'] = array(
'bundle' => 'documentair',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'accueil' => array(
'label' => 'hidden',
'settings' => array(),
'type' => 'hidden',
'weight' => 2,
),
'attente' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'default' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 0,
),
'teaser' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(
'trim_length' => 600,
),
'type' => 'text_summary_or_trimmed',
'weight' => 1,
),
),
'entity_type' => 'node',
'field_name' => 'body',
'label' => 'Body',
'required' => FALSE,
'settings' => array(
'display_summary' => TRUE,
'entity_translation_sync' => FALSE,
'text_processing' => 1,
'user_register_form' => FALSE,
),
'widget' => array(
'module' => 'text',
'settings' => array(
'rows' => 20,
'summary_rows' => 5,
),
'type' => 'text_textarea_with_summary',
'weight' => 5,
),
);
// Exported field_instance: 'node-documentair-field_description'.
$field_instances['node-documentair-field_description'] = array(
'bundle' => 'documentair',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'accueil' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 6,
),
'attente' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'default' => array(
'label' => 'above',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 4,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 6,
),
),
'entity_type' => 'node',
'field_name' => 'field_description',
'label' => 'Description',
'required' => 0,
'settings' => array(
'entity_translation_sync' => FALSE,
'linkit' => array(
'button_text' => 'Recherche',
'enable' => 0,
'profile' => '',
),
'text_processing' => 1,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'rows' => 5,
),
'type' => 'text_textarea',
'weight' => 103,
),
);
// Exported field_instance: 'node-documentair-field_doc'.
$field_instances['node-documentair-field_doc'] = array(
'bundle' => 'documentair',
@@ -530,6 +415,88 @@ function clameurs_field_default_field_instances() {
),
);
// Exported field_instance: 'node-documentair-field_vignette'.
$field_instances['node-documentair-field_vignette'] = array(
'bundle' => 'documentair',
'deleted' => 0,
'description' => '',
'display' => array(
'accueil' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'attente' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'default' => array(
'label' => 'above',
'module' => 'image',
'settings' => array(
'image_link' => '',
'image_style' => '',
),
'type' => 'image',
'weight' => 7,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_vignette',
'label' => 'vignette',
'required' => 0,
'settings' => array(
'alt_field' => 0,
'default_image' => 0,
'entity_translation_sync' => FALSE,
'file_directory' => 'vignettes',
'file_extensions' => 'png gif jpg jpeg',
'max_filesize' => '',
'max_resolution' => '',
'min_resolution' => '',
'title_field' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'image',
'settings' => array(
'insert' => 0,
'insert_absolute' => 0,
'insert_class' => '',
'insert_default' => 'auto',
'insert_styles' => array(
'auto' => 'auto',
'icon_link' => 0,
'image' => 0,
'image_large' => 0,
'image_linkit_thumb' => 0,
'image_medium' => 0,
'image_thumbnail' => 0,
'image_video_thumb_docu' => 0,
'image_video_thumb_episode' => 0,
'image_video_thumb_themat' => 0,
'image_video_thumbnail' => 0,
'link' => 0,
),
'insert_width' => '',
'preview_image_style' => 'thumbnail',
'progress_indicator' => 'throbber',
),
'type' => 'image_image',
'weight' => 5,
),
);
// Exported field_instance: 'node-documentair-title_field'.
$field_instances['node-documentair-title_field'] = array(
'bundle' => 'documentair',
@@ -586,127 +553,6 @@ function clameurs_field_default_field_instances() {
),
);
// Exported field_instance: 'node-episode-body'.
$field_instances['node-episode-body'] = array(
'bundle' => 'episode',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'accueil' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 6,
),
'attente' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'default' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 0,
),
'teaser' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(
'trim_length' => 600,
),
'type' => 'text_summary_or_trimmed',
'weight' => 1,
),
),
'entity_type' => 'node',
'field_name' => 'body',
'label' => 'Body',
'required' => 0,
'settings' => array(
'display_summary' => 1,
'entity_translation_sync' => FALSE,
'linkit' => array(
'button_text' => 'Recherche',
'enable' => 0,
'profile' => '',
),
'text_processing' => 1,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'rows' => 20,
'summary_rows' => 5,
),
'type' => 'text_textarea_with_summary',
'weight' => 2,
),
);
// Exported field_instance: 'node-episode-field_description'.
$field_instances['node-episode-field_description'] = array(
'bundle' => 'episode',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'accueil' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 7,
),
'attente' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'default' => array(
'label' => 'above',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 2,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 5,
),
),
'entity_type' => 'node',
'field_name' => 'field_description',
'label' => 'Description',
'required' => 0,
'settings' => array(
'entity_translation_sync' => FALSE,
'linkit' => array(
'button_text' => 'Recherche',
'enable' => 0,
'profile' => '',
),
'text_processing' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'rows' => 5,
),
'type' => 'text_textarea',
'weight' => 103,
),
);
// Exported field_instance: 'node-episode-field_emvideo'.
$field_instances['node-episode-field_emvideo'] = array(
'bundle' => 'episode',
@@ -902,6 +748,88 @@ function clameurs_field_default_field_instances() {
),
);
// Exported field_instance: 'node-episode-field_vignette'.
$field_instances['node-episode-field_vignette'] = array(
'bundle' => 'episode',
'deleted' => 0,
'description' => '',
'display' => array(
'accueil' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'attente' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'default' => array(
'label' => 'above',
'module' => 'image',
'settings' => array(
'image_link' => '',
'image_style' => '',
),
'type' => 'image',
'weight' => 7,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_vignette',
'label' => 'vignette',
'required' => 0,
'settings' => array(
'alt_field' => 0,
'default_image' => 0,
'entity_translation_sync' => FALSE,
'file_directory' => 'vignettes',
'file_extensions' => 'png gif jpg jpeg',
'max_filesize' => '',
'max_resolution' => '',
'min_resolution' => '',
'title_field' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'image',
'settings' => array(
'insert' => 0,
'insert_absolute' => 0,
'insert_class' => '',
'insert_default' => 'auto',
'insert_styles' => array(
'auto' => 'auto',
'icon_link' => 0,
'image' => 0,
'image_large' => 0,
'image_linkit_thumb' => 0,
'image_medium' => 0,
'image_thumbnail' => 0,
'image_video_thumb_docu' => 0,
'image_video_thumb_episode' => 0,
'image_video_thumb_themat' => 0,
'image_video_thumbnail' => 0,
'link' => 0,
),
'insert_width' => '',
'preview_image_style' => 'thumbnail',
'progress_indicator' => 'throbber',
),
'type' => 'image_image',
'weight' => 4,
),
);
// Exported field_instance: 'node-episode-title_field'.
$field_instances['node-episode-title_field'] = array(
'bundle' => 'episode',
@@ -1390,6 +1318,88 @@ function clameurs_field_default_field_instances() {
),
);
// Exported field_instance: 'node-thematique-field_vignette'.
$field_instances['node-thematique-field_vignette'] = array(
'bundle' => 'thematique',
'deleted' => 0,
'description' => '',
'display' => array(
'accueil' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'attente' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'default' => array(
'label' => 'above',
'module' => 'image',
'settings' => array(
'image_link' => '',
'image_style' => '',
),
'type' => 'image',
'weight' => 9,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_vignette',
'label' => 'vignette',
'required' => 0,
'settings' => array(
'alt_field' => 0,
'default_image' => 0,
'entity_translation_sync' => FALSE,
'file_directory' => 'vignettes',
'file_extensions' => 'png gif jpg jpeg',
'max_filesize' => '',
'max_resolution' => '',
'min_resolution' => '',
'title_field' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'image',
'settings' => array(
'insert' => 0,
'insert_absolute' => 0,
'insert_class' => '',
'insert_default' => 'auto',
'insert_styles' => array(
'auto' => 'auto',
'icon_link' => 0,
'image' => 0,
'image_large' => 0,
'image_linkit_thumb' => 0,
'image_medium' => 0,
'image_thumbnail' => 0,
'image_video_thumb_docu' => 0,
'image_video_thumb_episode' => 0,
'image_video_thumb_themat' => 0,
'image_video_thumbnail' => 0,
'link' => 0,
),
'insert_width' => '',
'preview_image_style' => 'thumbnail',
'progress_indicator' => 'throbber',
),
'type' => 'image_image',
'weight' => 102,
),
);
// Translatables
// Included for use with string extractors like potx.
t('Bidirectional');
@@ -1406,6 +1416,7 @@ function clameurs_field_default_field_instances() {
t('Titre');
t('Video');
t('Weight');
t('vignette');
t('À la maison commune');
t('Écouter');
t('éclairages');