-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathisu_banner.features.field_instance.inc
135 lines (130 loc) · 3.66 KB
/
isu_banner.features.field_instance.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
<?php
/**
* @file
* isu_banner.features.field_instance.inc
*/
/**
* Implements hook_field_default_field_instances().
*/
function isu_banner_field_default_field_instances() {
$field_instances = array();
// Exported field_instance: 'node-isu_banner-field_isu_banner_image'
$field_instances['node-isu_banner-field_isu_banner_image'] = array(
'bundle' => 'isu_banner',
'deleted' => 0,
'description' => 'The banner needs to be a jpg or jpeg at 72dpi resolution at 960px wide by 340px tall. There is a Photoshop template for creating this image available from Barb.',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'image',
'settings' => array(
'image_link' => '',
'image_style' => '',
),
'type' => 'image',
'weight' => 0,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_isu_banner_image',
'label' => 'Banner',
'required' => 1,
'settings' => array(
'alt_field' => 1,
'default_image' => 0,
'file_directory' => '',
'file_extensions' => 'png jpg jpeg',
'max_filesize' => '',
'max_resolution' => '960x340',
'min_resolution' => '960x340',
'title_field' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'image',
'settings' => array(
'insert' => 0,
'insert_absolute' => FALSE,
'insert_class' => '',
'insert_default' => array(
0 => 'auto',
),
'insert_styles' => array(
0 => 'auto',
),
'insert_width' => '',
'preview_image_style' => 'thumbnail',
'progress_indicator' => 'throbber',
),
'type' => 'image_image',
'weight' => -4,
),
);
// Exported field_instance: 'node-isu_banner-field_isu_banner_link'
$field_instances['node-isu_banner-field_isu_banner_link'] = array(
'bundle' => 'isu_banner',
'default_value' => NULL,
'deleted' => 0,
'description' => 'URL or Path of where this banner should link to.',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'link',
'settings' => array(),
'type' => 'link_default',
'weight' => 1,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_isu_banner_link',
'label' => 'Link',
'required' => 0,
'settings' => array(
'attributes' => array(
'class' => '',
'configurable_title' => 0,
'rel' => '',
'target' => 'default',
'title' => '',
),
'display' => array(
'url_cutoff' => 80,
),
'enable_tokens' => 1,
'rel_remove' => 'default',
'title' => 'none',
'title_maxlength' => 128,
'title_value' => '',
'url' => 0,
'user_register_form' => FALSE,
'validate_url' => 1,
),
'widget' => array(
'active' => 0,
'module' => 'link',
'settings' => array(),
'type' => 'link_field',
'weight' => -3,
),
);
// Translatables
// Included for use with string extractors like potx.
t('Banner');
t('Link');
t('The banner needs to be a jpg or jpeg at 72dpi resolution at 960px wide by 340px tall. There is a Photoshop template for creating this image available from Barb.');
t('URL or Path of where this banner should link to.');
return $field_instances;
}