media_vimeo.file_default_displays.inc
1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
/**
* @file
* Default display configuration for the default file types.
*/
/**
* Implements hook_file_default_displays().
*/
function media_vimeo_file_default_displays() {
$file_displays = array();
$file_display = new stdClass();
$file_display->api_version = 1;
$file_display->name = 'video__default__media_vimeo_video';
$file_display->weight = 0;
$file_display->status = TRUE;
$file_display->settings = array(
'width' => '640',
'height' => '360',
'color' => '',
'protocol_specify' => 0,
'protocol' => 'https://',
'autoplay' => 0,
'loop' => 0,
'title' => 1,
'byline' => 1,
'portrait' => 1,
'api' => 0,
);
$file_displays['video__default__media_vimeo_video'] = $file_display;
$file_display = new stdClass();
$file_display->api_version = 1;
$file_display->name = 'video__preview__media_vimeo_image';
$file_display->weight = 0;
$file_display->status = TRUE;
$file_display->settings = array(
'image_style' => 'media_thumbnail',
);
$file_displays['video__preview__media_vimeo_image'] = $file_display;
$file_display = new stdClass();
$file_display->api_version = 1;
$file_display->name = 'video__teaser__media_vimeo_video';
$file_display->weight = 0;
$file_display->status = TRUE;
$file_display->settings = array(
'width' => '320',
'height' => '180',
'color' => '',
'protocol_specify' => 0,
'protocol' => 'https://',
'autoplay' => 0,
'loop' => 0,
'title' => 1,
'byline' => 1,
'portrait' => 1,
'api' => 0,
);
$file_displays['video__teaser__media_vimeo_video'] = $file_display;
return $file_displays;
}