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
@@ -251,6 +251,26 @@ function clameurs_field_default_field_bases() {
'type' => 'taxonomy_term_reference',
);
// Exported field_base: 'field_emvideo'.
$field_bases['field_emvideo'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_emvideo',
'field_permissions' => array(
'type' => 0,
),
'indexes' => array(),
'locked' => 0,
'module' => 'video_embed_field',
'settings' => array(
'entity_translation_sync' => FALSE,
),
'translatable' => 0,
'type' => 'video_embed_field',
);
// Exported field_base: 'field_episodes'.
$field_bases['field_episodes'] = array(
'active' => 1,
@@ -390,32 +410,5 @@ function clameurs_field_default_field_bases() {
'type' => 'entityreference',
);
// Exported field_base: 'field_video'.
$field_bases['field_video'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_video',
'field_permissions' => array(
'type' => 0,
),
'indexes' => array(
'height' => array(
0 => 'height',
),
'width' => array(
0 => 'width',
),
),
'locked' => 0,
'module' => 'video_filter_field',
'settings' => array(
'entity_translation_sync' => FALSE,
),
'translatable' => 0,
'type' => 'video_filter',
);
return $field_bases;
}
@@ -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');
@@ -244,6 +244,7 @@ function clameurs_field_group_info() {
'children' => array(
0 => 'field_video',
1 => 'field_description',
2 => 'field_emvideo',
),
'format_type' => 'htab',
'format_settings' => array(
@@ -273,6 +274,7 @@ function clameurs_field_group_info() {
'children' => array(
0 => 'field_video',
1 => 'field_description',
2 => 'field_emvideo',
),
'format_type' => 'htab',
'format_settings' => array(
@@ -302,6 +304,7 @@ function clameurs_field_group_info() {
'children' => array(
0 => 'field_video',
1 => 'field_description',
2 => 'field_emvideo',
),
'format_type' => 'htab',
'format_settings' => array(
@@ -23,6 +23,7 @@ dependencies[] = rules
dependencies[] = strongarm
dependencies[] = taxonomy
dependencies[] = text
dependencies[] = video_embed_field
dependencies[] = video_filter_field
features[cer][] = node:documentair:field_thematique*node:thematique:field_eclairages
features[cer][] = node:thematique:field_episodes*node:episode:field_thematique
@@ -40,11 +41,11 @@ features[field_base][] = field_description
features[field_base][] = field_doc
features[field_base][] = field_eclairages
features[field_base][] = field_ecouter
features[field_base][] = field_emvideo
features[field_base][] = field_episodes
features[field_base][] = field_habiter
features[field_base][] = field_legende
features[field_base][] = field_thematique
features[field_base][] = field_video
features[field_group][] = group_eclairage|node|thematique|form
features[field_group][] = group_episodes|node|thematique|form
features[field_group][] = group_htabs|node|documentair|form
@@ -65,19 +66,19 @@ features[field_instance][] = file-image-field_legende
features[field_instance][] = node-documentair-body
features[field_instance][] = node-documentair-field_description
features[field_instance][] = node-documentair-field_doc
features[field_instance][] = node-documentair-field_emvideo
features[field_instance][] = node-documentair-field_thematique
features[field_instance][] = node-documentair-field_video
features[field_instance][] = node-episode-body
features[field_instance][] = node-episode-field_description
features[field_instance][] = node-episode-field_emvideo
features[field_instance][] = node-episode-field_habiter
features[field_instance][] = node-episode-field_thematique
features[field_instance][] = node-episode-field_video
features[field_instance][] = node-thematique-body
features[field_instance][] = node-thematique-field_description
features[field_instance][] = node-thematique-field_eclairages
features[field_instance][] = node-thematique-field_ecouter
features[field_instance][] = node-thematique-field_emvideo
features[field_instance][] = node-thematique-field_episodes
features[field_instance][] = node-thematique-field_video
features[node][] = documentair
features[node][] = episode
features[node][] = thematique
@@ -113,19 +113,22 @@ function clameurs_default_panels_mini() {
$display->content['new-3d79c2a1-ab4e-4a2d-a4d6-3a3960f7ae93'] = $pane;
$display->panels['left'][0] = 'new-3d79c2a1-ab4e-4a2d-a4d6-3a3960f7ae93';
$pane = new stdClass();
$pane->pid = 'new-31bfe1c2-ad6d-43bf-9abf-1da110424deb';
$pane->pid = 'new-5cb200c4-da2c-4eba-972d-24012a9136b7';
$pane->panel = 'left';
$pane->type = 'entity_field';
$pane->subtype = 'node:field_video';
$pane->subtype = 'node:field_emvideo';
$pane->shown = TRUE;
$pane->access = array();
$pane->configuration = array(
'label' => 'hidden',
'formatter' => 'video_filter_field_default',
'formatter' => 'video_embed_field_thumbnail',
'delta_limit' => 0,
'delta_offset' => '0',
'delta_reversed' => FALSE,
'formatter_settings' => array(),
'formatter_settings' => array(
'image_style' => 'large',
'image_link' => 'source',
),
'context' => 'requiredcontext_entity:node_1',
'override_title' => 0,
'override_title_text' => '',
@@ -139,9 +142,9 @@ function clameurs_default_panels_mini() {
$pane->extras = array();
$pane->position = 1;
$pane->locks = array();
$pane->uuid = '31bfe1c2-ad6d-43bf-9abf-1da110424deb';
$display->content['new-31bfe1c2-ad6d-43bf-9abf-1da110424deb'] = $pane;
$display->panels['left'][1] = 'new-31bfe1c2-ad6d-43bf-9abf-1da110424deb';
$pane->uuid = '5cb200c4-da2c-4eba-972d-24012a9136b7';
$display->content['new-5cb200c4-da2c-4eba-972d-24012a9136b7'] = $pane;
$display->panels['left'][1] = 'new-5cb200c4-da2c-4eba-972d-24012a9136b7';
$pane = new stdClass();
$pane->pid = 'new-5c424baf-2ef8-471e-a7f5-d8a5d8048b59';
$pane->panel = 'right';
@@ -27,6 +27,9 @@ function clameurs_strongarm() {
'redirect' => array(
'weight' => '9',
),
'workflow' => array(
'weight' => '99',
),
),
'display' => array(
'workflow_current_state' => array(
@@ -63,6 +66,9 @@ function clameurs_strongarm() {
'redirect' => array(
'weight' => '5',
),
'workflow' => array(
'weight' => '99',
),
),
'display' => array(
'workflow_current_state' => array(