-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrbv_com_fields.features.inc
69 lines (64 loc) · 2.1 KB
/
rbv_com_fields.features.inc
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
66
67
68
69
<?php
/**
* @file
* rbv_com_fields.features.inc
*/
/**
* Implements hook_ctools_plugin_api().
*/
function rbv_com_fields_ctools_plugin_api($module = NULL, $api = NULL) {
if ($module == "strongarm" && $api == "strongarm") {
return array("version" => "1");
}
}
/**
* Implements hook_image_default_styles().
*/
function rbv_com_fields_image_default_styles() {
$styles = array();
// Exported image style: rbv_image_icon.
$styles['rbv_image_icon'] = array(
'name' => 'rbv_image_icon',
'label' => 'RBV image icon 38x38',
'effects' => array(
1 => array(
'label' => 'Scale and crop',
'help' => 'Scale and crop will maintain the aspect-ratio of the original image, then crop the larger dimension. This is most useful for creating perfectly square thumbnails without stretching the image.',
'effect callback' => 'image_scale_and_crop_effect',
'dimensions callback' => 'image_resize_dimensions',
'form callback' => 'image_resize_form',
'summary theme' => 'image_resize_summary',
'module' => 'image',
'name' => 'image_scale_and_crop',
'data' => array(
'width' => 38,
'height' => 38,
),
'weight' => 1,
),
),
);
// Exported image style: rbv_image_teaser.
$styles['rbv_image_teaser'] = array(
'name' => 'rbv_image_teaser',
'label' => 'RBV image teaser 88x88',
'effects' => array(
2 => array(
'label' => 'Scale and crop',
'help' => 'Scale and crop will maintain the aspect-ratio of the original image, then crop the larger dimension. This is most useful for creating perfectly square thumbnails without stretching the image.',
'effect callback' => 'image_scale_and_crop_effect',
'dimensions callback' => 'image_resize_dimensions',
'form callback' => 'image_resize_form',
'summary theme' => 'image_resize_summary',
'module' => 'image',
'name' => 'image_scale_and_crop',
'data' => array(
'width' => 88,
'height' => 88,
),
'weight' => 1,
),
),
);
return $styles;
}