switch from video filter to video embed field

This commit is contained in:
2017-02-06 15:37:46 +01:00
parent 89c8bf9d41
commit 21c45a967e
11 changed files with 465 additions and 304 deletions
@@ -244,7 +244,7 @@ function clameurs_field_default_field_instances() {
'trim_length' => 600,
),
'type' => 'text_summary_or_trimmed',
'weight' => 2,
'weight' => 1,
),
),
'entity_type' => 'node',
@@ -310,7 +310,7 @@ function clameurs_field_default_field_instances() {
'rows' => 5,
),
'type' => 'text_textarea',
'weight' => 7,
'weight' => 103,
),
);
@@ -362,6 +362,60 @@ function clameurs_field_default_field_instances() {
),
);
// Exported field_instance: 'node-documentair-field_emvideo'.
$field_instances['node-documentair-field_emvideo'] = array(
'bundle' => 'documentair',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'video_embed_field',
'settings' => array(
'description' => 1,
'description_position' => 'bottom',
'video_style' => 'normal',
),
'type' => 'video_embed_field',
'weight' => 5,
),
'teaser' => array(
'label' => 'hidden',
'module' => 'video_embed_field',
'settings' => array(
'description' => 1,
'description_position' => 'bottom',
'image_link' => 'source',
'image_style' => 'large',
),
'type' => 'video_embed_field_thumbnail',
'weight' => 2,
),
),
'entity_type' => 'node',
'field_name' => 'field_emvideo',
'label' => 'Video',
'required' => 0,
'settings' => array(
'allowed_providers' => array(
'vimeo' => 'vimeo',
'youtube' => 'youtube',
),
'description_field' => 0,
'description_length' => 128,
'entity_translation_sync' => FALSE,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 0,
'module' => 'video_embed_field',
'settings' => array(),
'type' => 'video_embed_field_video',
'weight' => 101,
),
);
// Exported field_instance: 'node-documentair-field_thematique'.
$field_instances['node-documentair-field_thematique'] = array(
'bundle' => 'documentair',
@@ -406,48 +460,6 @@ function clameurs_field_default_field_instances() {
),
);
// Exported field_instance: 'node-documentair-field_video'.
$field_instances['node-documentair-field_video'] = array(
'bundle' => 'documentair',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'video_filter_field',
'settings' => array(),
'type' => 'video_filter_field_default',
'weight' => 2,
),
'teaser' => array(
'label' => 'hidden',
'module' => 'video_filter_field',
'settings' => array(),
'type' => 'video_filter_field_default',
'weight' => 1,
),
),
'entity_type' => 'node',
'field_name' => 'field_video',
'label' => 'Video',
'required' => 0,
'settings' => array(
'autoplay' => 0,
'entity_translation_sync' => FALSE,
'max_height' => 400,
'max_width' => 400,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 0,
'module' => 'video_filter_field',
'settings' => array(),
'type' => 'video_filter',
'weight' => 6,
),
);
// Exported field_instance: 'node-episode-body'.
$field_instances['node-episode-body'] = array(
'bundle' => 'episode',
@@ -469,7 +481,7 @@ function clameurs_field_default_field_instances() {
'trim_length' => 600,
),
'type' => 'text_summary_or_trimmed',
'weight' => 2,
'weight' => 1,
),
),
'entity_type' => 'node',
@@ -535,7 +547,61 @@ function clameurs_field_default_field_instances() {
'rows' => 5,
),
'type' => 'text_textarea',
'weight' => 4,
'weight' => 103,
),
);
// Exported field_instance: 'node-episode-field_emvideo'.
$field_instances['node-episode-field_emvideo'] = array(
'bundle' => 'episode',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'video_embed_field',
'settings' => array(
'description' => 1,
'description_position' => 'bottom',
'video_style' => 'normal',
),
'type' => 'video_embed_field',
'weight' => 5,
),
'teaser' => array(
'label' => 'hidden',
'module' => 'video_embed_field',
'settings' => array(
'description' => 1,
'description_position' => 'bottom',
'image_link' => 'source',
'image_style' => 'medium',
),
'type' => 'video_embed_field_thumbnail',
'weight' => 2,
),
),
'entity_type' => 'node',
'field_name' => 'field_emvideo',
'label' => 'Video',
'required' => 0,
'settings' => array(
'allowed_providers' => array(
'vimeo' => 'vimeo',
'youtube' => 'youtube',
),
'description_field' => 0,
'description_length' => 128,
'entity_translation_sync' => FALSE,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 0,
'module' => 'video_embed_field',
'settings' => array(),
'type' => 'video_embed_field_video',
'weight' => 101,
),
);
@@ -637,48 +703,6 @@ function clameurs_field_default_field_instances() {
),
);
// Exported field_instance: 'node-episode-field_video'.
$field_instances['node-episode-field_video'] = array(
'bundle' => 'episode',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'video_filter_field',
'settings' => array(),
'type' => 'video_filter_field_default',
'weight' => 1,
),
'teaser' => array(
'label' => 'hidden',
'module' => 'video_filter_field',
'settings' => array(),
'type' => 'video_filter_field_default',
'weight' => 1,
),
),
'entity_type' => 'node',
'field_name' => 'field_video',
'label' => 'Video',
'required' => 0,
'settings' => array(
'autoplay' => 0,
'entity_translation_sync' => FALSE,
'max_height' => 400,
'max_width' => 400,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 0,
'module' => 'video_filter_field',
'settings' => array(),
'type' => 'video_filter',
'weight' => 3,
),
);
// Exported field_instance: 'node-thematique-body'.
$field_instances['node-thematique-body'] = array(
'bundle' => 'thematique',
@@ -766,7 +790,7 @@ function clameurs_field_default_field_instances() {
'rows' => 5,
),
'type' => 'text_textarea',
'weight' => 6,
'weight' => 103,
),
);
@@ -856,6 +880,54 @@ function clameurs_field_default_field_instances() {
),
);
// Exported field_instance: 'node-thematique-field_emvideo'.
$field_instances['node-thematique-field_emvideo'] = array(
'bundle' => 'thematique',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'video_embed_field',
'settings' => array(
'description' => 1,
'description_position' => 'bottom',
'video_style' => 'normal',
),
'type' => 'video_embed_field',
'weight' => 7,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_emvideo',
'label' => 'Video',
'required' => 0,
'settings' => array(
'allowed_providers' => array(
'vimeo' => 'vimeo',
'youtube' => 'youtube',
),
'description_field' => 1,
'description_length' => 128,
'entity_translation_sync' => FALSE,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 0,
'module' => 'video_embed_field',
'settings' => array(),
'type' => 'video_embed_field_video',
'weight' => 101,
),
);
// Exported field_instance: 'node-thematique-field_episodes'.
$field_instances['node-thematique-field_episodes'] = array(
'bundle' => 'thematique',
@@ -900,47 +972,6 @@ function clameurs_field_default_field_instances() {
),
);
// Exported field_instance: 'node-thematique-field_video'.
$field_instances['node-thematique-field_video'] = array(
'bundle' => 'thematique',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'video_filter_field',
'settings' => array(),
'type' => 'video_filter_field_default',
'weight' => 1,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_video',
'label' => 'Video',
'required' => 0,
'settings' => array(
'autoplay' => 0,
'entity_translation_sync' => FALSE,
'max_height' => 400,
'max_width' => 400,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 0,
'module' => 'video_filter_field',
'settings' => array(),
'type' => 'video_filter',
'weight' => 5,
),
);
// Translatables
// Included for use with string extractors like potx.
t('Bidirectional');