-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathesd_str.features.inc
189 lines (180 loc) · 6.18 KB
/
esd_str.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
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<?php
/**
* @file
* esd_str.features.inc
*/
/**
* Implements hook_ctools_plugin_api().
*/
function esd_str_ctools_plugin_api() {
list($module, $api) = func_get_args();
if ($module == "boxes" && $api == "box") {
return array("version" => "1");
}
list($module, $api) = func_get_args();
if ($module == "context" && $api == "context") {
return array("version" => "3");
}
list($module, $api) = func_get_args();
if ($module == "strongarm" && $api == "strongarm") {
return array("version" => "1");
}
}
/**
* Implements hook_default_entity_boxes_type().
*/
function esd_str_default_entity_boxes_type() {
$items = array();
$items['dyk_box'] = entity_import('entity_boxes_type', '{ "type" : "dyk_box", "label" : "dyk_box", "weight" : "0", "data" : "" }');
$items['rich_box'] = entity_import('entity_boxes_type', '{ "type" : "rich_box", "label" : "rich_box", "weight" : "0", "data" : "" }');
return $items;
}
/**
* Implements hook_image_default_styles().
*/
function esd_str_image_default_styles() {
$styles = array();
// Exported image style: 340w211h.
$styles['340w211h'] = array(
'name' => '340w211h',
'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' => 'imageinfo_cache_effect_router',
'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' => '340',
'height' => '211',
'#imageinfo_cache_effect_callback' => 'imageinfo_cache_effect_router',
),
'weight' => '1',
),
),
'label' => '340w211h',
);
// Exported image style: 340wNh.
$styles['340wNh'] = array(
'name' => '340wNh',
'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' => 'imageinfo_cache_effect_router',
'dimensions callback' => 'image_scale_dimensions',
'form callback' => 'image_scale_form',
'summary theme' => 'image_scale_summary',
'module' => 'image',
'name' => 'image_scale',
'data' => array(
'width' => '340',
'height' => '',
'upscale' => 0,
'#imageinfo_cache_effect_callback' => 'imageinfo_cache_effect_router',
),
'weight' => '1',
),
),
'label' => '340wNh',
);
// Exported image style: 580w360h.
$styles['580w360h'] = array(
'name' => '580w360h',
'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' => 'imageinfo_cache_effect_router',
'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' => '580',
'height' => '360',
'#imageinfo_cache_effect_callback' => 'imageinfo_cache_effect_router',
),
'weight' => '1',
),
),
'label' => '580w360h',
);
// Exported image style: 580wNh.
$styles['580wNh'] = array(
'name' => '580wNh',
'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' => 'imageinfo_cache_effect_router',
'dimensions callback' => 'image_scale_dimensions',
'form callback' => 'image_scale_form',
'summary theme' => 'image_scale_summary',
'module' => 'image',
'name' => 'image_scale',
'data' => array(
'width' => '580',
'height' => '',
'upscale' => 0,
'#imageinfo_cache_effect_callback' => 'imageinfo_cache_effect_router',
),
'weight' => '1',
),
),
'label' => '580wNh',
);
return $styles;
}
/**
* Implements hook_node_info().
*/
function esd_str_node_info() {
$items = array(
'blog_entry' => array(
'name' => t('Blog Entry'),
'base' => 'node_content',
'description' => t('Blog entries share time-sensitive updates on education, ESD’s work, and the coalition’s relationships in the community.'),
'has_title' => '1',
'title_label' => t('Title'),
'help' => '',
),
'front_page_slide' => array(
'name' => t('Front Page Slide'),
'base' => 'node_content',
'description' => t('Slide for the slideshow block on the front page.'),
'has_title' => '1',
'title_label' => t('Title'),
'help' => '',
),
'media_hit' => array(
'name' => t('Media Hit'),
'base' => 'node_content',
'description' => t('Each media hit records a piece of earned media (which could be online, in print, or broadcast). The content of the original piece should be included along with a link to the publisher’s website.'),
'has_title' => '1',
'title_label' => t('Title'),
'help' => '',
),
'page' => array(
'name' => t('Page'),
'base' => 'node_content',
'description' => t('Most pieces of content on the site are basic Pages.'),
'has_title' => '1',
'title_label' => t('Title'),
'help' => '',
),
'weekly_update' => array(
'name' => t('Weekly Update'),
'base' => 'node_content',
'description' => t('Use when a Weekly Education News & Policy Update is sent in MailChimp. '),
'has_title' => '1',
'title_label' => t('Title'),
'help' => '',
),
);
return $items;
}