-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunh_destinyone.features.inc
193 lines (181 loc) · 4.58 KB
/
unh_destinyone.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
190
191
192
193
<?php
/**
* @file
* unh_destinyone.features.inc
*/
/**
* Implements hook_ctools_plugin_api().
*/
function unh_destinyone_ctools_plugin_api($module = NULL, $api = NULL) {
if ($module == "captcha" && $api == "captcha") {
return array("version" => "1");
}
if ($module == "field_group" && $api == "field_group") {
return array("version" => "1");
}
if ($module == "panelizer" && $api == "panelizer") {
return array("version" => "1");
}
if ($module == "strongarm" && $api == "strongarm") {
return array("version" => "1");
}
}
/**
* Implements hook_views_api().
*/
function unh_destinyone_views_api($module = NULL, $api = NULL) {
return array("api" => "3.0");
}
/**
* Implements hook_image_default_styles().
*/
function unh_destinyone_image_default_styles() {
$styles = array();
// Exported image style: course_image__1600w_.
$styles['course_image__1600w_'] = array(
'label' => 'Course Image (1600w)',
'effects' => array(
4 => array(
'name' => 'image_scale',
'data' => array(
'width' => 1600,
'height' => '',
'upscale' => 1,
),
'weight' => 1,
),
5 => array(
'name' => 'image_crop',
'data' => array(
'width' => 1600,
'height' => 685,
'anchor' => 'center-center',
),
'weight' => 2,
),
),
);
// Exported image style: person__150w_.
$styles['person__150w_'] = array(
'label' => 'Person (150w)',
'effects' => array(
2 => array(
'name' => 'image_scale',
'data' => array(
'width' => 150,
'height' => '',
'upscale' => 1,
),
'weight' => 1,
),
),
);
// Exported image style: person__250w_.
$styles['person__250w_'] = array(
'label' => 'Person (250w)',
'effects' => array(
6 => array(
'name' => 'image_scale',
'data' => array(
'width' => 250,
'height' => '',
'upscale' => 1,
),
'weight' => 1,
),
),
);
// Exported image style: square_thumbnail.
$styles['square_thumbnail'] = array(
'label' => 'square_thumbnail',
'effects' => array(
1 => array(
'name' => 'image_scale_and_crop',
'data' => array(
'width' => 100,
'height' => 100,
'weight' => 0,
),
'weight' => 0,
),
),
);
// Exported image style: testimonial__200w_.
$styles['testimonial__200w_'] = array(
'label' => 'Testimonial (200w)',
'effects' => array(
8 => array(
'name' => 'image_scale',
'data' => array(
'width' => 200,
'height' => '',
'upscale' => 1,
),
'weight' => 1,
),
),
);
// Exported image style: testimonial__300w_.
$styles['testimonial__300w_'] = array(
'label' => 'Testimonial (300w)',
'effects' => array(
9 => array(
'name' => 'image_scale',
'data' => array(
'width' => 300,
'height' => '',
'upscale' => 1,
),
'weight' => 1,
),
),
);
// Exported image style: testimonial_thumb__160x160_.
$styles['testimonial_thumb__160x160_'] = array(
'label' => 'Testimonial Thumb (160x160)',
'effects' => array(
7 => array(
'name' => 'image_scale_and_crop',
'data' => array(
'width' => 160,
'height' => 160,
),
'weight' => 1,
),
),
);
return $styles;
}
/**
* Implements hook_node_info().
*/
function unh_destinyone_node_info() {
$items = array(
'course' => array(
'name' => t('Course'),
'base' => 'node_content',
'description' => t('A DestinyOne course. Links to a course on the DestinyOne server. Contains additional information and settings to be presented to the user from the Drupal front end.'),
'has_title' => '1',
'title_label' => t('Title'),
'help' => '',
),
'testimonial' => array(
'name' => t('Testimonial'),
'base' => 'node_content',
'description' => t('Testimonials from students. (How are these input?)'),
'has_title' => '1',
'title_label' => t('Title'),
'help' => '',
),
'webform' => array(
'name' => t('Webform'),
'base' => 'node_content',
'description' => t('Create a new form or questionnaire accessible to users. Submission results and statistics are recorded and accessible to privileged users.'),
'has_title' => '1',
'title_label' => t('Title'),
'help' => '',
),
);
drupal_alter('node_info', $items);
return $items;
}