1 |
599a39cd
|
Assos Assos
|
<?php
|
2 |
|
|
|
3 |
|
|
/**
|
4 |
|
|
* @file
|
5 |
|
|
* date_test_feature.features.field_instance.inc
|
6 |
|
|
*/
|
7 |
|
|
|
8 |
|
|
/**
|
9 |
|
|
* Implements hook_field_default_field_instances().
|
10 |
|
|
*/
|
11 |
|
|
function date_test_feature_field_default_field_instances() {
|
12 |
|
|
$field_instances = array();
|
13 |
|
|
|
14 |
|
|
// Exported field_instance: 'node-date_test_feature-body'.
|
15 |
|
|
$field_instances['node-date_test_feature-body'] = array(
|
16 |
|
|
'bundle' => 'date_test_feature',
|
17 |
|
|
'default_value' => NULL,
|
18 |
|
|
'deleted' => 0,
|
19 |
|
|
'description' => '',
|
20 |
|
|
'display' => array(
|
21 |
|
|
'default' => array(
|
22 |
|
|
'label' => 'hidden',
|
23 |
|
|
'module' => 'text',
|
24 |
|
|
'settings' => array(),
|
25 |
|
|
'type' => 'text_default',
|
26 |
|
|
'weight' => 0,
|
27 |
|
|
),
|
28 |
|
|
'teaser' => array(
|
29 |
|
|
'label' => 'hidden',
|
30 |
|
|
'module' => 'text',
|
31 |
|
|
'settings' => array(
|
32 |
|
|
'trim_length' => 600,
|
33 |
|
|
),
|
34 |
|
|
'type' => 'text_summary_or_trimmed',
|
35 |
|
|
'weight' => 0,
|
36 |
|
|
),
|
37 |
|
|
),
|
38 |
|
|
'entity_type' => 'node',
|
39 |
|
|
'field_name' => 'body',
|
40 |
|
|
'label' => 'Body',
|
41 |
|
|
'required' => FALSE,
|
42 |
|
|
'settings' => array(
|
43 |
|
|
'display_summary' => TRUE,
|
44 |
|
|
'text_processing' => 1,
|
45 |
|
|
'user_register_form' => FALSE,
|
46 |
|
|
),
|
47 |
|
|
'widget' => array(
|
48 |
|
|
'module' => 'text',
|
49 |
|
|
'settings' => array(
|
50 |
|
|
'rows' => 20,
|
51 |
|
|
'summary_rows' => 5,
|
52 |
|
|
),
|
53 |
|
|
'type' => 'text_textarea_with_summary',
|
54 |
|
|
'weight' => 1,
|
55 |
|
|
),
|
56 |
|
|
);
|
57 |
|
|
|
58 |
|
|
// Exported field_instance: 'node-date_test_feature-field_date'.
|
59 |
|
|
$field_instances['node-date_test_feature-field_date'] = array(
|
60 |
|
|
'bundle' => 'date_test_feature',
|
61 |
|
|
'deleted' => 0,
|
62 |
|
|
'description' => '',
|
63 |
|
|
'display' => array(
|
64 |
|
|
'default' => array(
|
65 |
|
|
'label' => 'above',
|
66 |
|
|
'module' => 'date',
|
67 |
|
|
'settings' => array(
|
68 |
|
|
'custom_date_format' => '',
|
69 |
|
|
'format_type' => 'medium',
|
70 |
|
|
'fromto' => 'both',
|
71 |
|
|
'multiple_from' => '',
|
72 |
|
|
'multiple_number' => '',
|
73 |
|
|
'multiple_to' => '',
|
74 |
|
|
'show_remaining_days' => FALSE,
|
75 |
|
|
'show_repeat_rule' => 'show',
|
76 |
|
|
),
|
77 |
|
|
'type' => 'date_default',
|
78 |
|
|
'weight' => 1,
|
79 |
|
|
),
|
80 |
|
|
'teaser' => array(
|
81 |
|
|
'label' => 'above',
|
82 |
|
|
'settings' => array(),
|
83 |
|
|
'type' => 'hidden',
|
84 |
|
|
'weight' => 0,
|
85 |
|
|
),
|
86 |
|
|
),
|
87 |
|
|
'entity_type' => 'node',
|
88 |
|
|
'field_name' => 'field_date',
|
89 |
|
|
'label' => 'Date',
|
90 |
|
|
'required' => FALSE,
|
91 |
|
|
'settings' => array(
|
92 |
|
|
'default_value' => 'now',
|
93 |
|
|
'default_value2' => 'blank',
|
94 |
|
|
'default_value_code' => '',
|
95 |
|
|
'default_value_code2' => '',
|
96 |
|
|
'user_register_form' => FALSE,
|
97 |
|
|
),
|
98 |
|
|
'widget' => array(
|
99 |
|
|
'active' => 1,
|
100 |
|
|
'module' => 'date',
|
101 |
|
|
'settings' => array(
|
102 |
|
|
'display_all_day' => 0,
|
103 |
|
|
'increment' => 1,
|
104 |
|
|
'input_format' => 'm/d/Y - H:i:s',
|
105 |
|
|
'input_format_custom' => '',
|
106 |
|
|
'label_position' => 'above',
|
107 |
|
|
'no_fieldset' => 0,
|
108 |
|
|
'repeat_collapsed' => 0,
|
109 |
|
|
'text_parts' => array(),
|
110 |
|
|
'year_range' => '-3:+3',
|
111 |
|
|
),
|
112 |
|
|
'type' => 'date_text',
|
113 |
|
|
'weight' => 2,
|
114 |
|
|
),
|
115 |
|
|
);
|
116 |
|
|
|
117 |
|
|
// Exported field_instance: 'node-date_test_feature-field_date_range'.
|
118 |
|
|
$field_instances['node-date_test_feature-field_date_range'] = array(
|
119 |
|
|
'bundle' => 'date_test_feature',
|
120 |
|
|
'deleted' => 0,
|
121 |
|
|
'description' => '',
|
122 |
|
|
'display' => array(
|
123 |
|
|
'default' => array(
|
124 |
|
|
'label' => 'above',
|
125 |
|
|
'module' => 'date',
|
126 |
|
|
'settings' => array(
|
127 |
|
|
'custom_date_format' => '',
|
128 |
|
|
'format_type' => 'medium',
|
129 |
|
|
'fromto' => 'both',
|
130 |
|
|
'multiple_from' => '',
|
131 |
|
|
'multiple_number' => '',
|
132 |
|
|
'multiple_to' => '',
|
133 |
|
|
'show_remaining_days' => FALSE,
|
134 |
|
|
'show_repeat_rule' => 'show',
|
135 |
|
|
),
|
136 |
|
|
'type' => 'date_default',
|
137 |
|
|
'weight' => 2,
|
138 |
|
|
),
|
139 |
|
|
'teaser' => array(
|
140 |
|
|
'label' => 'above',
|
141 |
|
|
'settings' => array(),
|
142 |
|
|
'type' => 'hidden',
|
143 |
|
|
'weight' => 0,
|
144 |
|
|
),
|
145 |
|
|
),
|
146 |
|
|
'entity_type' => 'node',
|
147 |
|
|
'field_name' => 'field_date_range',
|
148 |
|
|
'label' => 'Date range',
|
149 |
|
|
'required' => FALSE,
|
150 |
|
|
'settings' => array(
|
151 |
|
|
'default_format' => 'medium',
|
152 |
|
|
'default_value' => 'now',
|
153 |
|
|
'default_value2' => 'strtotime',
|
154 |
|
|
'default_value_code' => '',
|
155 |
|
|
'default_value_code2' => '+7 days',
|
156 |
|
|
'user_register_form' => FALSE,
|
157 |
|
|
),
|
158 |
|
|
'widget' => array(
|
159 |
|
|
'active' => 1,
|
160 |
|
|
'module' => 'date',
|
161 |
|
|
'settings' => array(
|
162 |
|
|
'display_all_day' => 0,
|
163 |
|
|
'increment' => 1,
|
164 |
|
|
'input_format' => 'm/d/Y - H:i:s',
|
165 |
|
|
'input_format_custom' => '',
|
166 |
|
|
'label_position' => 'above',
|
167 |
|
|
'repeat_collapsed' => 0,
|
168 |
|
|
'text_parts' => array(),
|
169 |
|
|
'year_range' => '-3:+3',
|
170 |
|
|
),
|
171 |
|
|
'type' => 'date_text',
|
172 |
|
|
'weight' => 3,
|
173 |
|
|
),
|
174 |
|
|
);
|
175 |
|
|
|
176 |
|
|
// Exported field_instance: 'node-date_test_feature-field_date_repeat'.
|
177 |
|
|
$field_instances['node-date_test_feature-field_date_repeat'] = array(
|
178 |
|
|
'bundle' => 'date_test_feature',
|
179 |
|
|
'default_value' => NULL,
|
180 |
|
|
'deleted' => 0,
|
181 |
|
|
'description' => '',
|
182 |
|
|
'display' => array(
|
183 |
|
|
'default' => array(
|
184 |
|
|
'label' => 'above',
|
185 |
|
|
'module' => 'date',
|
186 |
|
|
'settings' => array(
|
187 |
|
|
'custom_date_format' => '',
|
188 |
|
|
'format_type' => 'medium',
|
189 |
|
|
'fromto' => 'both',
|
190 |
|
|
'multiple_from' => '',
|
191 |
|
|
'multiple_number' => '',
|
192 |
|
|
'multiple_to' => '',
|
193 |
|
|
'show_remaining_days' => FALSE,
|
194 |
|
|
'show_repeat_rule' => 'show',
|
195 |
|
|
),
|
196 |
|
|
'type' => 'date_default',
|
197 |
|
|
'weight' => 7,
|
198 |
|
|
),
|
199 |
|
|
'teaser' => array(
|
200 |
|
|
'label' => 'above',
|
201 |
|
|
'settings' => array(),
|
202 |
|
|
'type' => 'hidden',
|
203 |
|
|
'weight' => 0,
|
204 |
|
|
),
|
205 |
|
|
),
|
206 |
|
|
'entity_type' => 'node',
|
207 |
|
|
'field_name' => 'field_date_repeat',
|
208 |
|
|
'label' => 'Date with repeat',
|
209 |
|
|
'required' => FALSE,
|
210 |
|
|
'settings' => array(
|
211 |
|
|
'default_format' => 'medium',
|
212 |
|
|
'default_value' => 'now',
|
213 |
|
|
'default_value2' => 'blank',
|
214 |
|
|
'default_value_code' => '',
|
215 |
|
|
'default_value_code2' => '',
|
216 |
|
|
'repeat_collapsed' => 0,
|
217 |
|
|
'user_register_form' => FALSE,
|
218 |
|
|
),
|
219 |
|
|
'widget' => array(
|
220 |
|
|
'active' => 1,
|
221 |
|
|
'module' => 'date',
|
222 |
|
|
'settings' => array(
|
223 |
|
|
'display_all_day' => 0,
|
224 |
|
|
'increment' => 1,
|
225 |
|
|
'input_format' => 'm/d/Y - H:i:s',
|
226 |
|
|
'input_format_custom' => '',
|
227 |
|
|
'label_position' => 'above',
|
228 |
|
|
'repeat_collapsed' => 0,
|
229 |
|
|
'text_parts' => array(),
|
230 |
|
|
'year_range' => '-3:+3',
|
231 |
|
|
),
|
232 |
|
|
'type' => 'date_select',
|
233 |
|
|
'weight' => 8,
|
234 |
|
|
),
|
235 |
|
|
);
|
236 |
|
|
|
237 |
|
|
// Exported field_instance: 'node-date_test_feature-field_datestamp'.
|
238 |
|
|
$field_instances['node-date_test_feature-field_datestamp'] = array(
|
239 |
|
|
'bundle' => 'date_test_feature',
|
240 |
|
|
'deleted' => 0,
|
241 |
|
|
'description' => '',
|
242 |
|
|
'display' => array(
|
243 |
|
|
'default' => array(
|
244 |
|
|
'label' => 'above',
|
245 |
|
|
'module' => 'date',
|
246 |
|
|
'settings' => array(
|
247 |
|
|
'custom_date_format' => '',
|
248 |
|
|
'format_type' => 'medium',
|
249 |
|
|
'fromto' => 'both',
|
250 |
|
|
'multiple_from' => '',
|
251 |
|
|
'multiple_number' => '',
|
252 |
|
|
'multiple_to' => '',
|
253 |
|
|
'show_remaining_days' => FALSE,
|
254 |
|
|
'show_repeat_rule' => 'show',
|
255 |
|
|
),
|
256 |
|
|
'type' => 'date_default',
|
257 |
|
|
'weight' => 3,
|
258 |
|
|
),
|
259 |
|
|
'teaser' => array(
|
260 |
|
|
'label' => 'above',
|
261 |
|
|
'settings' => array(),
|
262 |
|
|
'type' => 'hidden',
|
263 |
|
|
'weight' => 0,
|
264 |
|
|
),
|
265 |
|
|
),
|
266 |
|
|
'entity_type' => 'node',
|
267 |
|
|
'field_name' => 'field_datestamp',
|
268 |
|
|
'label' => 'Datestamp',
|
269 |
|
|
'required' => FALSE,
|
270 |
|
|
'settings' => array(
|
271 |
|
|
'default_format' => 'medium',
|
272 |
|
|
'default_value' => 'now',
|
273 |
|
|
'default_value2' => 'blank',
|
274 |
|
|
'default_value_code' => '',
|
275 |
|
|
'default_value_code2' => '',
|
276 |
|
|
'user_register_form' => FALSE,
|
277 |
|
|
),
|
278 |
|
|
'widget' => array(
|
279 |
|
|
'active' => 1,
|
280 |
|
|
'module' => 'date',
|
281 |
|
|
'settings' => array(
|
282 |
|
|
'display_all_day' => 0,
|
283 |
|
|
'increment' => 1,
|
284 |
|
|
'input_format' => 'm/d/Y - H:i:s',
|
285 |
|
|
'input_format_custom' => '',
|
286 |
|
|
'label_position' => 'above',
|
287 |
|
|
'repeat_collapsed' => 0,
|
288 |
|
|
'text_parts' => array(),
|
289 |
|
|
'year_range' => '-3:+3',
|
290 |
|
|
),
|
291 |
|
|
'type' => 'date_text',
|
292 |
|
|
'weight' => 4,
|
293 |
|
|
),
|
294 |
|
|
);
|
295 |
|
|
|
296 |
|
|
// Exported field_instance: 'node-date_test_feature-field_datestamp_range'.
|
297 |
|
|
$field_instances['node-date_test_feature-field_datestamp_range'] = array(
|
298 |
|
|
'bundle' => 'date_test_feature',
|
299 |
|
|
'deleted' => 0,
|
300 |
|
|
'description' => '',
|
301 |
|
|
'display' => array(
|
302 |
|
|
'default' => array(
|
303 |
|
|
'label' => 'above',
|
304 |
|
|
'module' => 'date',
|
305 |
|
|
'settings' => array(
|
306 |
|
|
'custom_date_format' => '',
|
307 |
|
|
'format_type' => 'medium',
|
308 |
|
|
'fromto' => 'both',
|
309 |
|
|
'multiple_from' => '',
|
310 |
|
|
'multiple_number' => '',
|
311 |
|
|
'multiple_to' => '',
|
312 |
|
|
'show_remaining_days' => FALSE,
|
313 |
|
|
'show_repeat_rule' => 'show',
|
314 |
|
|
),
|
315 |
|
|
'type' => 'date_default',
|
316 |
|
|
'weight' => 4,
|
317 |
|
|
),
|
318 |
|
|
'teaser' => array(
|
319 |
|
|
'label' => 'above',
|
320 |
|
|
'settings' => array(),
|
321 |
|
|
'type' => 'hidden',
|
322 |
|
|
'weight' => 0,
|
323 |
|
|
),
|
324 |
|
|
),
|
325 |
|
|
'entity_type' => 'node',
|
326 |
|
|
'field_name' => 'field_datestamp_range',
|
327 |
|
|
'label' => 'Datestamp range',
|
328 |
|
|
'required' => FALSE,
|
329 |
|
|
'settings' => array(
|
330 |
|
|
'default_format' => 'medium',
|
331 |
|
|
'default_value' => 'now',
|
332 |
|
|
'default_value2' => 'strtotime',
|
333 |
|
|
'default_value_code' => '',
|
334 |
|
|
'default_value_code2' => '+3 months',
|
335 |
|
|
'user_register_form' => FALSE,
|
336 |
|
|
),
|
337 |
|
|
'widget' => array(
|
338 |
|
|
'active' => 1,
|
339 |
|
|
'module' => 'date',
|
340 |
|
|
'settings' => array(
|
341 |
|
|
'display_all_day' => 0,
|
342 |
|
|
'increment' => 1,
|
343 |
|
|
'input_format' => 'm/d/Y - H:i:s',
|
344 |
|
|
'input_format_custom' => '',
|
345 |
|
|
'label_position' => 'above',
|
346 |
|
|
'repeat_collapsed' => 0,
|
347 |
|
|
'text_parts' => array(),
|
348 |
|
|
'year_range' => '-3:+3',
|
349 |
|
|
),
|
350 |
|
|
'type' => 'date_select',
|
351 |
|
|
'weight' => 5,
|
352 |
|
|
),
|
353 |
|
|
);
|
354 |
|
|
|
355 |
|
|
// Exported field_instance: 'node-date_test_feature-field_datetime'.
|
356 |
|
|
$field_instances['node-date_test_feature-field_datetime'] = array(
|
357 |
|
|
'bundle' => 'date_test_feature',
|
358 |
|
|
'deleted' => 0,
|
359 |
|
|
'description' => '',
|
360 |
|
|
'display' => array(
|
361 |
|
|
'default' => array(
|
362 |
|
|
'label' => 'above',
|
363 |
|
|
'module' => 'date',
|
364 |
|
|
'settings' => array(
|
365 |
|
|
'custom_date_format' => '',
|
366 |
|
|
'format_type' => 'medium',
|
367 |
|
|
'fromto' => 'both',
|
368 |
|
|
'multiple_from' => '',
|
369 |
|
|
'multiple_number' => '',
|
370 |
|
|
'multiple_to' => '',
|
371 |
|
|
'show_remaining_days' => FALSE,
|
372 |
|
|
'show_repeat_rule' => 'show',
|
373 |
|
|
),
|
374 |
|
|
'type' => 'date_default',
|
375 |
|
|
'weight' => 5,
|
376 |
|
|
),
|
377 |
|
|
'teaser' => array(
|
378 |
|
|
'label' => 'above',
|
379 |
|
|
'settings' => array(),
|
380 |
|
|
'type' => 'hidden',
|
381 |
|
|
'weight' => 0,
|
382 |
|
|
),
|
383 |
|
|
),
|
384 |
|
|
'entity_type' => 'node',
|
385 |
|
|
'field_name' => 'field_datetime',
|
386 |
|
|
'label' => 'Datetime',
|
387 |
|
|
'required' => FALSE,
|
388 |
|
|
'settings' => array(
|
389 |
|
|
'default_format' => 'medium',
|
390 |
|
|
'default_value' => 'now',
|
391 |
|
|
'default_value2' => 'blank',
|
392 |
|
|
'default_value_code' => '',
|
393 |
|
|
'default_value_code2' => '',
|
394 |
|
|
'user_register_form' => FALSE,
|
395 |
|
|
),
|
396 |
|
|
'widget' => array(
|
397 |
|
|
'active' => 1,
|
398 |
|
|
'module' => 'date',
|
399 |
|
|
'settings' => array(
|
400 |
|
|
'display_all_day' => 0,
|
401 |
|
|
'increment' => 1,
|
402 |
|
|
'input_format' => 'm/d/Y - H:i:s',
|
403 |
|
|
'input_format_custom' => '',
|
404 |
|
|
'label_position' => 'above',
|
405 |
|
|
'repeat_collapsed' => 0,
|
406 |
|
|
'text_parts' => array(),
|
407 |
|
|
'year_range' => '-3:+3',
|
408 |
|
|
),
|
409 |
|
|
'type' => 'date_text',
|
410 |
|
|
'weight' => 6,
|
411 |
|
|
),
|
412 |
|
|
);
|
413 |
|
|
|
414 |
|
|
// Exported field_instance: 'node-date_test_feature-field_datetime_range'.
|
415 |
|
|
$field_instances['node-date_test_feature-field_datetime_range'] = array(
|
416 |
|
|
'bundle' => 'date_test_feature',
|
417 |
|
|
'deleted' => 0,
|
418 |
|
|
'description' => '',
|
419 |
|
|
'display' => array(
|
420 |
|
|
'default' => array(
|
421 |
|
|
'label' => 'above',
|
422 |
|
|
'module' => 'date',
|
423 |
|
|
'settings' => array(
|
424 |
|
|
'custom_date_format' => '',
|
425 |
|
|
'format_type' => 'medium',
|
426 |
|
|
'fromto' => 'both',
|
427 |
|
|
'multiple_from' => '',
|
428 |
|
|
'multiple_number' => '',
|
429 |
|
|
'multiple_to' => '',
|
430 |
|
|
'show_remaining_days' => FALSE,
|
431 |
|
|
'show_repeat_rule' => 'show',
|
432 |
|
|
),
|
433 |
|
|
'type' => 'date_default',
|
434 |
|
|
'weight' => 6,
|
435 |
|
|
),
|
436 |
|
|
'teaser' => array(
|
437 |
|
|
'label' => 'above',
|
438 |
|
|
'settings' => array(),
|
439 |
|
|
'type' => 'hidden',
|
440 |
|
|
'weight' => 0,
|
441 |
|
|
),
|
442 |
|
|
),
|
443 |
|
|
'entity_type' => 'node',
|
444 |
|
|
'field_name' => 'field_datetime_range',
|
445 |
|
|
'label' => 'Datetime range',
|
446 |
|
|
'required' => FALSE,
|
447 |
|
|
'settings' => array(
|
448 |
|
|
'default_format' => 'medium',
|
449 |
|
|
'default_value' => 'now',
|
450 |
|
|
'default_value2' => '+1 week',
|
451 |
|
|
'default_value_code' => '',
|
452 |
|
|
'default_value_code2' => '+1 year',
|
453 |
|
|
'user_register_form' => FALSE,
|
454 |
|
|
),
|
455 |
|
|
'widget' => array(
|
456 |
|
|
'active' => 1,
|
457 |
|
|
'module' => 'date',
|
458 |
|
|
'settings' => array(
|
459 |
|
|
'display_all_day' => 0,
|
460 |
|
|
'increment' => 1,
|
461 |
|
|
'input_format' => 'm/d/Y - H:i:s',
|
462 |
|
|
'input_format_custom' => '',
|
463 |
|
|
'label_position' => 'above',
|
464 |
|
|
'repeat_collapsed' => 0,
|
465 |
|
|
'text_parts' => array(),
|
466 |
|
|
'year_range' => '-3:+3',
|
467 |
|
|
),
|
468 |
|
|
'type' => 'date_text',
|
469 |
|
|
'weight' => 7,
|
470 |
|
|
),
|
471 |
|
|
);
|
472 |
|
|
|
473 |
|
|
// Translatables
|
474 |
|
|
// Included for use with string extractors like potx.
|
475 |
|
|
t('Body');
|
476 |
|
|
t('Date');
|
477 |
|
|
t('Date range');
|
478 |
|
|
t('Date with repeat');
|
479 |
|
|
t('Datestamp');
|
480 |
|
|
t('Datestamp range');
|
481 |
|
|
t('Datetime');
|
482 |
|
|
t('Datetime range');
|
483 |
|
|
|
484 |
|
|
return $field_instances;
|
485 |
|
|
} |