forked from vejlebib/ding_tabroll
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathding_tabroll.features.inc
More file actions
117 lines (109 loc) · 3.5 KB
/
ding_tabroll.features.inc
File metadata and controls
117 lines (109 loc) · 3.5 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<?php
/**
* @file
* ding_tabroll.features.inc
*/
/**
* Implements hook_ctools_plugin_api().
*/
function ding_tabroll_ctools_plugin_api() {
list($module, $api) = func_get_args();
if ($module == "strongarm" && $api == "strongarm") {
return array("version" => "1");
}
}
/**
* Implements hook_views_api().
*/
function ding_tabroll_views_api() {
return array("api" => "3.0");
}
/**
* Implements hook_image_default_styles().
*/
function ding_tabroll_image_default_styles() {
$styles = array();
// Exported image style: ding_tabroll_large.
$styles['ding_tabroll_large'] = array(
'name' => 'ding_tabroll_large',
'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' => 1200,
'height' => 400,
),
'weight' => 1,
),
),
'label' => 'ding_tabroll_large',
);
// Exported image style: ding_tabroll_medium.
$styles['ding_tabroll_medium'] = array(
'name' => 'ding_tabroll_medium',
'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' => 900,
'height' => 300,
),
'weight' => 1,
),
),
'label' => 'ding_tabroll_medium',
);
// Exported image style: ding_tabroll_small.
$styles['ding_tabroll_small'] = array(
'name' => 'ding_tabroll_small',
'effects' => array(
3 => 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' => 450,
'height' => 150,
),
'weight' => 1,
),
),
'label' => 'ding_tabroll_small',
);
return $styles;
}
/**
* Implements hook_node_info().
*/
function ding_tabroll_node_info() {
$items = array(
'ding_rolltab' => array(
'name' => t('Rolltab'),
'base' => 'node_content',
'description' => t('Rolltabs are shown in a Tabroll, where each rolltab slide into the next in a carousel.'),
'has_title' => '1',
'title_label' => t('Title'),
'help' => '',
),
);
return $items;
}