1
|
<?php
|
2
|
|
3
|
/**
|
4
|
* @file
|
5
|
* date_all_day_test_feature.features.field_instance.inc
|
6
|
*/
|
7
|
|
8
|
/**
|
9
|
* Implements hook_field_default_field_instances().
|
10
|
*/
|
11
|
function date_all_day_test_feature_field_default_field_instances() {
|
12
|
$field_instances = array();
|
13
|
|
14
|
// Exported field_instance: 'node-date_all_day_test-body'.
|
15
|
$field_instances['node-date_all_day_test-body'] = array(
|
16
|
'bundle' => 'date_all_day_test',
|
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_all_day_test-field_date_all_day'.
|
59
|
$field_instances['node-date_all_day_test-field_date_all_day'] = array(
|
60
|
'bundle' => 'date_all_day_test',
|
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' => 'long',
|
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' => 8,
|
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_all_day',
|
89
|
'label' => 'Date All Day',
|
90
|
'required' => FALSE,
|
91
|
'settings' => array(
|
92
|
'default_value' => 'now',
|
93
|
'default_value2' => 'same',
|
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' => 1,
|
103
|
'increment' => 15,
|
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_select',
|
113
|
'weight' => 9,
|
114
|
),
|
115
|
);
|
116
|
|
117
|
// Translatables
|
118
|
// Included for use with string extractors like potx.
|
119
|
t('Body');
|
120
|
t('Date All Day');
|
121
|
|
122
|
return $field_instances;
|
123
|
}
|