Révision ca0757b9
Ajouté par Assos Assos il y a plus de 9 ans
drupal7/sites/all/modules/file_entity/file_entity.file_default_displays.inc | ||
---|---|---|
93 | 93 |
$file_display->settings = ''; |
94 | 94 |
$file_displays['image__teaser__file_field_file_default'] = $file_display; |
95 | 95 |
|
96 |
// Enhance the default image displays if the Image module is enabled. |
|
97 |
if (module_exists('image')) { |
|
98 |
// Images should be displayed as unstyled images by default. |
|
99 |
$file_display = new stdClass(); |
|
100 |
$file_display->api_version = 1; |
|
101 |
$file_display->name = 'image__default__file_field_image'; |
|
102 |
$file_display->weight = 49; |
|
103 |
$file_display->status = TRUE; |
|
104 |
$file_display->settings = array( |
|
105 |
'image_style' => '', |
|
106 |
'image_link' => '', |
|
107 |
); |
|
108 |
$file_displays['image__default__file_field_image'] = $file_display; |
|
109 |
|
|
110 |
// Image previews should be displayed as image thumbnails by default. |
|
111 |
$file_display = new stdClass(); |
|
112 |
$file_display->api_version = 1; |
|
113 |
$file_display->name = 'image__preview__file_field_image'; |
|
114 |
$file_display->weight = 49; |
|
115 |
$file_display->status = TRUE; |
|
116 |
$file_display->settings = array( |
|
117 |
'image_style' => 'thumbnail', |
|
118 |
'image_link' => '', |
|
119 |
); |
|
120 |
$file_displays['image__preview__file_field_image'] = $file_display; |
|
121 |
|
|
122 |
// Image teasers should be displayed as medium images by default. |
|
123 |
$file_display = new stdClass(); |
|
124 |
$file_display->api_version = 1; |
|
125 |
$file_display->name = 'image__teaser__file_field_image'; |
|
126 |
$file_display->weight = 49; |
|
127 |
$file_display->status = TRUE; |
|
128 |
$file_display->settings = array( |
|
129 |
'image_style' => 'medium', |
|
130 |
'image_link' => 'content', |
|
131 |
); |
|
132 |
$file_displays['image__teaser__file_field_image'] = $file_display; |
|
133 |
} |
|
134 |
|
|
96 | 135 |
$file_display = new stdClass(); |
97 | 136 |
$file_display->api_version = 1; |
98 | 137 |
$file_display->name = 'video__default__file_field_file_video'; |
Formats disponibles : Unified diff
Weekly update of contrib modules