-
Notifications
You must be signed in to change notification settings - Fork 0
/
discimport_discs.features.field_base.inc
125 lines (118 loc) · 2.72 KB
/
discimport_discs.features.field_base.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
<?php
/**
* @file
* discimport_discs.features.field_base.inc
*/
/**
* Implements hook_field_default_field_bases().
*/
function discimport_discs_field_default_field_bases() {
$field_bases = array();
// Exported field_base: 'billysbilling_product_id'.
$field_bases['billysbilling_product_id'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'billysbilling_product_id',
'indexes' => array(
'format' => array(
0 => 'format',
),
),
'locked' => 1,
'module' => 'text',
'settings' => array(
'max_length' => 255,
),
'translatable' => 0,
'type' => 'text',
);
// Exported field_base: 'body'.
$field_bases['body'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(
0 => 'node',
),
'field_name' => 'body',
'indexes' => array(
'format' => array(
0 => 'format',
),
),
'locked' => 0,
'module' => 'text',
'settings' => array(),
'translatable' => 0,
'type' => 'text_with_summary',
);
// Exported field_base: 'commerce_stock'.
$field_bases['commerce_stock'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(
0 => 'commerce_product',
),
'field_name' => 'commerce_stock',
'indexes' => array(),
'locked' => 0,
'module' => 'number',
'settings' => array(
'decimal_separator' => '.',
'precision' => 10,
'scale' => 2,
),
'translatable' => 0,
'type' => 'number_decimal',
);
// Exported field_base: 'field_discount_group'.
$field_bases['field_discount_group'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_discount_group',
'indexes' => array(
'tid' => array(
0 => 'tid',
),
),
'locked' => 0,
'module' => 'taxonomy',
'settings' => array(
'allowed_values' => array(
0 => array(
'vocabulary' => 'discountgroup',
'parent' => 0,
),
),
'options_list_callback' => 'title_taxonomy_allowed_values',
),
'translatable' => 0,
'type' => 'taxonomy_term_reference',
);
// Exported field_base: 'title_field'.
$field_bases['title_field'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'title_field',
'indexes' => array(
'format' => array(
0 => 'format',
),
),
'locked' => 0,
'module' => 'text',
'settings' => array(
'max_length' => 255,
),
'translatable' => 1,
'type' => 'text',
);
return $field_bases;
}