Projet

Général

Profil

Paste
Télécharger (4,45 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / media_youtube / media_youtube.file_default_displays.inc @ 5e632cae

1
<?php
2

    
3
/**
4
 * @file
5
 * Default display configuration for the default file types.
6
 */
7

    
8
/**
9
 * Implements hook_file_default_displays().
10
 */
11
function media_youtube_file_default_displays() {
12
  $file_displays = array();
13

    
14
  // Media: YouTube 7.x-2.x.
15
  $file_display = new stdClass();
16
  $file_display->api_version = 1;
17
  $file_display->name = 'video__default__media_youtube_video';
18
  $file_display->weight = 0;
19
  $file_display->status = TRUE;
20
  $file_display->settings = array(
21
    'width' => '640',
22
    'height' => '390',
23
    'theme' => 'dark',
24
    'color' => 'red',
25
    'autohide' => '2',
26
    'autoplay' => 0,
27
    'loop' => 0,
28
    'showinfo' => 1,
29
    'modestbranding' => 0,
30
    'rel' => 0,
31
    'nocookie' => 0,
32
    'protocol_specify' => 0,
33
    'protocol' => 'https:',
34
    'enablejsapi' => 0,
35
    'origin' => '',
36
  );
37
  $file_displays['video__default__media_youtube_video'] = $file_display;
38

    
39
  $file_display = new stdClass();
40
  $file_display->api_version = 1;
41
  $file_display->name = 'video__preview__media_youtube_image';
42
  $file_display->weight = 0;
43
  $file_display->status = TRUE;
44
  $file_display->settings = array(
45
    'image_style' => 'media_thumbnail',
46
  );
47
  $file_displays['video__preview__media_youtube_image'] = $file_display;
48

    
49
  $file_display = new stdClass();
50
  $file_display->api_version = 1;
51
  $file_display->name = 'video__teaser__media_youtube_video';
52
  $file_display->weight = 0;
53
  $file_display->status = TRUE;
54
  $file_display->settings = array(
55
    'width' => '560',
56
    'height' => '340',
57
    'theme' => 'dark',
58
    'color' => 'red',
59
    'autohide' => '2',
60
    'autoplay' => 0,
61
    'loop' => 0,
62
    'showinfo' => 1,
63
    'modestbranding' => 0,
64
    'rel' => 0,
65
    'nocookie' => 0,
66
    'protocol_specify' => 0,
67
    'protocol' => 'https:',
68
    'enablejsapi' => 0,
69
    'origin' => '',
70
  );
71
  $file_displays['video__teaser__media_youtube_video'] = $file_display;
72

    
73
  // Media: YouTube 7.x-1.x.
74
  $file_display = new stdClass();
75
  $file_display->api_version = 1;
76
  $file_display->name = 'video__media_original__media_youtube_video';
77
  $file_display->weight = 0;
78
  $file_display->status = TRUE;
79
  $file_display->settings = array(
80
    'width' => '640',
81
    'height' => '390',
82
    'theme' => 'dark',
83
    'color' => 'red',
84
    'autohide' => '2',
85
    'autoplay' => 0,
86
    'loop' => 0,
87
    'showinfo' => 1,
88
    'modestbranding' => 0,
89
    'rel' => 0,
90
    'nocookie' => 0,
91
    'protocol_specify' => 0,
92
    'protocol' => 'https:',
93
    'enablejsapi' => 0,
94
    'origin' => '',
95
  );
96
  $file_displays['video__media_original__media_youtube_video'] = $file_display;
97

    
98
  $file_display = new stdClass();
99
  $file_display->api_version = 1;
100
  $file_display->name = 'video__media_large__media_youtube_video';
101
  $file_display->weight = 0;
102
  $file_display->status = TRUE;
103
  $file_display->settings = array(
104
    'width' => '640',
105
    'height' => '390',
106
    'theme' => 'dark',
107
    'color' => 'red',
108
    'autohide' => '2',
109
    'autoplay' => 0,
110
    'loop' => 0,
111
    'showinfo' => 1,
112
    'modestbranding' => 0,
113
    'rel' => 0,
114
    'nocookie' => 0,
115
    'protocol_specify' => 0,
116
    'protocol' => 'https:',
117
    'enablejsapi' => 0,
118
    'origin' => '',
119
  );
120
  $file_displays['video__media_large__media_youtube_video'] = $file_display;
121

    
122
  $file_display = new stdClass();
123
  $file_display->api_version = 1;
124
  $file_display->name = 'video__media_small__media_youtube_video';
125
  $file_display->weight = 0;
126
  $file_display->status = TRUE;
127
  $file_display->settings = array(
128
    'width' => '560',
129
    'height' => '340',
130
    'theme' => 'dark',
131
    'color' => 'red',
132
    'autohide' => '2',
133
    'autoplay' => 0,
134
    'loop' => 0,
135
    'showinfo' => 1,
136
    'modestbranding' => 0,
137
    'rel' => 0,
138
    'nocookie' => 0,
139
    'protocol_specify' => 0,
140
    'protocol' => 'https:',
141
    'enablejsapi' => 0,
142
    'origin' => '',
143
  );
144
  $file_displays['video__media_small__media_youtube_video'] = $file_display;
145

    
146
  $file_display = new stdClass();
147
  $file_display->api_version = 1;
148
  $file_display->name = 'video__media_preview__media_youtube_image';
149
  $file_display->weight = 0;
150
  $file_display->status = TRUE;
151
  $file_display->settings = array(
152
    'image_style' => 'square_thumbnail',
153
  );
154
  $file_displays['video__media_preview__media_youtube_image'] = $file_display;
155

    
156
  $file_display = new stdClass();
157
  $file_display->api_version = 1;
158
  $file_display->name = 'video__media_link__file_field_file_default';
159
  $file_display->weight = 0;
160
  $file_display->status = TRUE;
161
  $file_display->settings = '';
162
  $file_displays['video__media_link__file_field_file_default'] = $file_display;
163

    
164
  return $file_displays;
165
}