-
Notifications
You must be signed in to change notification settings - Fork 0
/
os_base.features.field.inc
92 lines (88 loc) · 2.11 KB
/
os_base.features.field.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
<?php
/**
* @file
* os_base.features.field.inc
*/
/**
* Implements hook_field_default_fields().
*/
function os_base_field_default_fields() {
$fields = array();
// Exported field: 'node-page-body'.
$fields['node-page-body'] = array(
'field_config' => array(
'active' => '1',
'cardinality' => '1',
'deleted' => '0',
'entity_types' => array(
0 => 'node',
),
'field_name' => 'body',
'foreign keys' => array(
'format' => array(
'columns' => array(
'format' => 'format',
),
'table' => 'filter_format',
),
),
'indexes' => array(
'format' => array(
0 => 'format',
),
),
'module' => 'text',
'settings' => array(),
'translatable' => '1',
'type' => 'text_with_summary',
),
'field_instance' => array(
'bundle' => 'page',
'default_value' => NULL,
'deleted' => '0',
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => '1',
),
'teaser' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(
'trim_length' => '250',
),
'type' => 'text_summary_or_trimmed',
'weight' => '0',
),
),
'entity_type' => 'node',
'field_name' => 'body',
'label' => 'Body',
'required' => 0,
'settings' => array(
'display_summary' => 1,
'text_processing' => '1',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'rows' => '20',
'summary_rows' => 5,
),
'type' => 'text_textarea_with_summary',
'weight' => '2',
),
'widget_type' => 'text_textarea_with_summary',
),
);
// Translatables
// Included for use with string extractors like potx.
t('Body');
return $fields;
}