-
Notifications
You must be signed in to change notification settings - Fork 0
/
os_blog.features.field_instance.inc
105 lines (100 loc) · 2.71 KB
/
os_blog.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
<?php
/**
* @file
* os_blog.features.field_instance.inc
*/
/**
* Implements hook_field_default_field_instances().
*/
function os_blog_field_default_field_instances() {
$field_instances = array();
// Exported field_instance: 'node-blog_post-body'
$field_instances['node-blog_post-body'] = array(
'bundle' => 'blog_post',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 0,
),
'teaser' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(
'trim_length' => 600,
),
'type' => 'text_summary_or_trimmed',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'body',
'label' => 'Blog Post',
'required' => 1,
'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' => -4,
),
);
// Exported field_instance: 'node-blog_post-field_blog_category'
$field_instances['node-blog_post-field_blog_category'] = array(
'bundle' => 'blog_post',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Tag your blog post with categories so that related posts can be linked. Begin typing a word to see matching categories.',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'taxonomy',
'settings' => array(),
'type' => 'taxonomy_term_reference_link',
'weight' => 1,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_blog_category',
'label' => 'Blog Category',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 0,
'module' => 'options',
'settings' => array(
'autocomplete_path' => 'taxonomy/autocomplete',
'size' => 60,
),
'type' => 'options_select',
'weight' => -3,
),
);
// Translatables
// Included for use with string extractors like potx.
t('Blog Category');
t('Blog Post');
t('Tag your blog post with categories so that related posts can be linked. Begin typing a word to see matching categories.');
return $field_instances;
}