forked from mikl/ding_campaign
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathding_campaign.features.content.inc
156 lines (151 loc) · 3.8 KB
/
ding_campaign.features.content.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
<?php
/**
* Implementation of hook_content_default_fields().
*/
function ding_campaign_content_default_fields() {
$fields = array();
// Exported field: field_campaign_image
$fields['campaign-field_campaign_image'] = array(
'field_name' => 'field_campaign_image',
'type_name' => 'campaign',
'display_settings' => array(
'weight' => '-2',
'parent' => '',
'label' => array(
'format' => 'hidden',
),
'teaser' => array(
'format' => 'image_plain',
'exclude' => 0,
),
'full' => array(
'format' => 'image_plain',
'exclude' => 0,
),
'4' => array(
'format' => 'image_plain',
'exclude' => 0,
),
'2' => array(
'format' => 'image_plain',
'exclude' => 0,
),
'3' => array(
'format' => 'image_plain',
'exclude' => 0,
),
'token' => array(
'format' => 'image_plain',
'exclude' => 0,
),
),
'widget_active' => '1',
'type' => 'filefield',
'required' => '0',
'multiple' => '0',
'module' => 'filefield',
'active' => '1',
'list_field' => '0',
'list_default' => 1,
'description_field' => '0',
'widget' => array(
'file_extensions' => 'png jpg jpeg gif',
'file_path' => 'campaigns',
'progress_indicator' => 'bar',
'max_filesize_per_file' => '',
'max_filesize_per_node' => '',
'max_resolution' => 0,
'min_resolution' => 0,
'alt' => '',
'custom_alt' => 0,
'title' => '',
'custom_title' => 0,
'title_type' => 'textfield',
'default_image' => NULL,
'use_default_image' => 0,
'insert' => NULL,
'insert_styles' => NULL,
'insert_default' => NULL,
'insert_class' => NULL,
'insert_width' => NULL,
'label' => 'Kampagnebillede',
'weight' => '-2',
'description' => 'Upload det billede som skal bruges til billedkampagnen.',
'type' => 'imagefield_widget',
'module' => 'imagefield',
),
);
// Exported field: field_campaign_link
$fields['campaign-field_campaign_link'] = array(
'field_name' => 'field_campaign_link',
'type_name' => 'campaign',
'display_settings' => array(
'weight' => '-1',
'parent' => '',
'label' => array(
'format' => 'hidden',
),
'teaser' => array(
'format' => 'hidden',
'exclude' => 0,
),
'full' => array(
'format' => 'hidden',
'exclude' => 0,
),
'4' => array(
'format' => 'default',
'exclude' => 0,
),
'2' => array(
'format' => 'default',
'exclude' => 0,
),
'3' => array(
'format' => 'default',
'exclude' => 0,
),
'token' => array(
'format' => 'default',
'exclude' => 0,
),
),
'widget_active' => '1',
'type' => 'link',
'required' => '1',
'multiple' => '0',
'module' => 'link',
'active' => '1',
'attributes' => array(
'target' => 'default',
'rel' => '',
'class' => '',
),
'display' => array(
'url_cutoff' => '80',
),
'url' => 0,
'title' => 'none',
'title_value' => '',
'enable_tokens' => 0,
'validate_url' => '',
'widget' => array(
'default_value' => array(
'0' => array(
'url' => '',
),
),
'default_value_php' => NULL,
'label' => 'Kampagnedestination',
'weight' => '-1',
'description' => 'Kampagnedestinationen skal være en URL (internetadresse) til det sted brugeren sendes hen, når han klikker på kampagnen.',
'type' => 'link',
'module' => 'link',
),
);
// Translatables
// Included for use with string extractors like potx.
t('Kampagnebillede');
t('Kampagnedestination');
return $fields;
}