-
Notifications
You must be signed in to change notification settings - Fork 0
/
wetkit_core.features.field_instance.inc
108 lines (103 loc) · 2.61 KB
/
wetkit_core.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
<?php
/**
* @file
* wetkit_core.features.field_instance.inc
*/
/**
* Implements hook_field_default_field_instances().
*/
function wetkit_core_field_default_field_instances() {
$field_instances = array();
// Exported field_instance:
// 'taxonomy_term-wetkit_categories-description_field'.
$field_instances['taxonomy_term-wetkit_categories-description_field'] = array(
'bundle' => 'wetkit_categories',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 1,
),
'featured' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'taxonomy_term',
'field_name' => 'description_field',
'label' => 'Description',
'required' => FALSE,
'settings' => array(
'display_summary' => 0,
'entity_translation_sync' => FALSE,
'hide_label' => array(
'entity' => FALSE,
'page' => FALSE,
),
'text_processing' => 1,
'user_register_form' => FALSE,
),
'widget' => array(
'module' => 'text',
'settings' => array(
'rows' => 20,
'summary_rows' => 5,
),
'type' => 'text_textarea_with_summary',
'weight' => -5,
),
);
// Exported field_instance: 'taxonomy_term-wetkit_categories-name_field'.
$field_instances['taxonomy_term-wetkit_categories-name_field'] = array(
'bundle' => 'wetkit_categories',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'featured' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'taxonomy_term',
'field_name' => 'name_field',
'label' => 'Name',
'required' => TRUE,
'settings' => array(
'entity_translation_sync' => FALSE,
'hide_label' => array(
'entity' => FALSE,
'page' => FALSE,
),
'text_processing' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'module' => 'text',
'settings' => array(
'size' => 60,
),
'type' => 'text_textfield',
'weight' => -5,
),
);
// Translatables
// Included for use with string extractors like potx.
t('Description');
t('Name');
return $field_instances;
}