forked from ding2/ding_content
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathding_content.features.inc
More file actions
48 lines (44 loc) · 1.24 KB
/
ding_content.features.inc
File metadata and controls
48 lines (44 loc) · 1.24 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
<?php
/**
* @file
* ding_content.features.inc
*/
/**
* Implements hook_ctools_plugin_api().
*/
function ding_content_ctools_plugin_api() {
list($module, $api) = func_get_args();
if ($module == "strongarm" && $api == "strongarm") {
return array("version" => "1");
}
}
/**
* Implements hook_image_default_styles().
*/
function ding_content_image_default_styles() {
$styles = array();
// Exported image style: ding_content_main_image.
$styles['ding_content_main_image'] = array(
'name' => 'ding_content_main_image',
'effects' => array(
1 => array(
'label' => 'Scale',
'help' => 'Scaling will maintain the aspect-ratio of the original image. If only a single dimension is specified, the other dimension will be calculated.',
'effect callback' => 'image_scale_effect',
'dimensions callback' => 'image_scale_dimensions',
'form callback' => 'image_scale_form',
'summary theme' => 'image_scale_summary',
'module' => 'image',
'name' => 'image_scale',
'data' => array(
'width' => '525',
'height' => '',
'upscale' => 0,
),
'weight' => '1',
),
),
'label' => 'ding_content_main_image',
);
return $styles;
}