1
|
<?php
|
2
|
/**
|
3
|
* @file
|
4
|
* flexslider_example.features.field.inc
|
5
|
*/
|
6
|
|
7
|
/**
|
8
|
* Implements hook_field_default_fields().
|
9
|
*/
|
10
|
function flexslider_example_field_default_fields() {
|
11
|
$fields = array();
|
12
|
|
13
|
// Exported field: 'node-flexslider_example-field_flexslider_example_image'.
|
14
|
$fields['node-flexslider_example-field_flexslider_example_image'] = array(
|
15
|
'field_config' => array(
|
16
|
'active' => '1',
|
17
|
'cardinality' => '-1',
|
18
|
'deleted' => '0',
|
19
|
'entity_types' => array(),
|
20
|
'field_name' => 'field_flexslider_example_image',
|
21
|
'foreign keys' => array(
|
22
|
'fid' => array(
|
23
|
'columns' => array(
|
24
|
'fid' => 'fid',
|
25
|
),
|
26
|
'table' => 'file_managed',
|
27
|
),
|
28
|
),
|
29
|
'indexes' => array(
|
30
|
'fid' => array(
|
31
|
0 => 'fid',
|
32
|
),
|
33
|
),
|
34
|
'locked' => '0',
|
35
|
'module' => 'image',
|
36
|
'settings' => array(
|
37
|
'default_image' => 0,
|
38
|
'uri_scheme' => 'public',
|
39
|
),
|
40
|
'translatable' => '0',
|
41
|
'type' => 'image',
|
42
|
),
|
43
|
'field_instance' => array(
|
44
|
'bundle' => 'flexslider_example',
|
45
|
'deleted' => '0',
|
46
|
'description' => '',
|
47
|
'display' => array(
|
48
|
'default' => array(
|
49
|
'label' => 'hidden',
|
50
|
'settings' => array(),
|
51
|
'type' => 'hidden',
|
52
|
'weight' => '0',
|
53
|
),
|
54
|
'teaser' => array(
|
55
|
'label' => 'above',
|
56
|
'settings' => array(),
|
57
|
'type' => 'hidden',
|
58
|
'weight' => 0,
|
59
|
),
|
60
|
),
|
61
|
'entity_type' => 'node',
|
62
|
'field_name' => 'field_flexslider_example_image',
|
63
|
'label' => 'FlexSlider Example Image',
|
64
|
'required' => 0,
|
65
|
'settings' => array(
|
66
|
'alt_field' => 0,
|
67
|
'default_image' => 0,
|
68
|
'file_directory' => 'flexslider_example',
|
69
|
'file_extensions' => 'png gif jpg jpeg',
|
70
|
'max_filesize' => '',
|
71
|
'max_resolution' => '',
|
72
|
'min_resolution' => '',
|
73
|
'title_field' => 0,
|
74
|
'user_register_form' => FALSE,
|
75
|
),
|
76
|
'widget' => array(
|
77
|
'active' => 1,
|
78
|
'module' => 'image',
|
79
|
'settings' => array(
|
80
|
'preview_image_style' => 'thumbnail',
|
81
|
'progress_indicator' => 'throbber',
|
82
|
),
|
83
|
'type' => 'image_image',
|
84
|
'weight' => '-4',
|
85
|
),
|
86
|
),
|
87
|
);
|
88
|
|
89
|
// Exported field: 'node-flexslider_example-field_flexslider_example_slidesh'.
|
90
|
$fields['node-flexslider_example-field_flexslider_example_slidesh'] = array(
|
91
|
'field_config' => array(
|
92
|
'active' => '1',
|
93
|
'cardinality' => '-1',
|
94
|
'deleted' => '0',
|
95
|
'entity_types' => array(),
|
96
|
'field_name' => 'field_flexslider_example_slidesh',
|
97
|
'foreign keys' => array(
|
98
|
'fid' => array(
|
99
|
'columns' => array(
|
100
|
'fid' => 'fid',
|
101
|
),
|
102
|
'table' => 'file_managed',
|
103
|
),
|
104
|
),
|
105
|
'indexes' => array(
|
106
|
'fid' => array(
|
107
|
0 => 'fid',
|
108
|
),
|
109
|
),
|
110
|
'locked' => '0',
|
111
|
'module' => 'image',
|
112
|
'settings' => array(
|
113
|
'default_image' => 0,
|
114
|
'uri_scheme' => 'public',
|
115
|
),
|
116
|
'translatable' => '0',
|
117
|
'type' => 'image',
|
118
|
),
|
119
|
'field_instance' => array(
|
120
|
'bundle' => 'flexslider_example',
|
121
|
'deleted' => '0',
|
122
|
'description' => '',
|
123
|
'display' => array(
|
124
|
'default' => array(
|
125
|
'label' => 'above',
|
126
|
'module' => 'flexslider_fields',
|
127
|
'settings' => array(
|
128
|
'caption' => 1,
|
129
|
'image_style' => '',
|
130
|
'optionset' => 'flexslider_default_thumbnail_slider',
|
131
|
),
|
132
|
'type' => 'flexslider',
|
133
|
'weight' => '1',
|
134
|
),
|
135
|
'teaser' => array(
|
136
|
'label' => 'above',
|
137
|
'settings' => array(),
|
138
|
'type' => 'hidden',
|
139
|
'weight' => 0,
|
140
|
),
|
141
|
),
|
142
|
'entity_type' => 'node',
|
143
|
'field_name' => 'field_flexslider_example_slidesh',
|
144
|
'label' => 'FlexSlider Example Slideshow',
|
145
|
'required' => 0,
|
146
|
'settings' => array(
|
147
|
'alt_field' => 0,
|
148
|
'default_image' => 0,
|
149
|
'file_directory' => 'flexslider_example',
|
150
|
'file_extensions' => 'png gif jpg jpeg',
|
151
|
'max_filesize' => '',
|
152
|
'max_resolution' => '',
|
153
|
'min_resolution' => '',
|
154
|
'title_field' => 1,
|
155
|
'user_register_form' => FALSE,
|
156
|
),
|
157
|
'widget' => array(
|
158
|
'active' => 1,
|
159
|
'module' => 'image',
|
160
|
'settings' => array(
|
161
|
'preview_image_style' => 'thumbnail',
|
162
|
'progress_indicator' => 'throbber',
|
163
|
),
|
164
|
'type' => 'image_image',
|
165
|
'weight' => '-3',
|
166
|
),
|
167
|
),
|
168
|
);
|
169
|
|
170
|
// Translatables
|
171
|
// Included for use with string extractors like potx.
|
172
|
t('FlexSlider Example Image');
|
173
|
t('FlexSlider Example Slideshow');
|
174
|
|
175
|
return $fields;
|
176
|
}
|