-
Notifications
You must be signed in to change notification settings - Fork 2
/
inventory_views.field_group.inc
165 lines (158 loc) · 5.35 KB
/
inventory_views.field_group.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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<?php
/**
* @file
* inventory_views.field_group.inc
*/
/**
* Implements hook_field_group_info().
*/
function inventory_views_field_group_info() {
$field_groups = array();
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
$field_group->identifier = 'group_ansible|node|server|form';
$field_group->group_name = 'group_ansible';
$field_group->entity_type = 'node';
$field_group->bundle = 'server';
$field_group->mode = 'form';
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'Ansible Fields',
'weight' => '16',
'children' => array(
0 => 'field_groups',
1 => 'field_ansible_user',
2 => 'field_linode_id',
3 => 'field_linode_plan',
4 => 'field_hostname',
5 => 'field_timezone',
6 => 'field_incoming_email',
),
'format_type' => 'fieldset',
'format_settings' => array(
'label' => 'Ansible Fields',
'instance_settings' => array(
'required_fields' => 0,
'id' => '',
'classes' => '',
'description' => '',
),
'formatter' => 'collapsed',
),
);
$field_groups['group_ansible|node|server|form'] = $field_group;
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
$field_group->identifier = 'group_git|node|website|form';
$field_group->group_name = 'group_git';
$field_group->entity_type = 'node';
$field_group->bundle = 'website';
$field_group->mode = 'form';
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'Git',
'weight' => '16',
'children' => array(
0 => 'field_internal_repo',
1 => 'field_git_repo_owner',
2 => 'field_git_repo_name',
),
'format_type' => 'fieldset',
'format_settings' => array(
'formatter' => 'collapsible',
'instance_settings' => array(
'description' => '',
'classes' => 'group-git field-group-fieldset',
'required_fields' => 1,
'id' => '',
),
),
);
$field_groups['group_git|node|website|form'] = $field_group;
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
$field_group->identifier = 'group_overrides|node|website|form';
$field_group->group_name = 'group_overrides';
$field_group->entity_type = 'node';
$field_group->bundle = 'website';
$field_group->mode = 'form';
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'Overrides',
'weight' => '14',
'children' => array(
0 => 'field_gitroot_override',
1 => 'field_cms_db_name_override',
2 => 'field_cms_db_name',
3 => 'field_crm_db_name_override',
4 => 'field_crm_db_name',
5 => 'field_db_user_override',
6 => 'field_db_user',
7 => 'field_gitroot',
8 => 'field_civiroot_override',
9 => 'field_civiroot',
10 => 'field_civicrm_custom_path_overri',
11 => 'field_civicrm_custom_path',
12 => 'field_civicrm_files_path_overrid',
13 => 'field_civicrm_files_path',
14 => 'field_git_repo_url_override',
15 => 'field_git_repo_push_url_override',
16 => 'field_git_repo_url',
17 => 'field_git_repo_push_url',
18 => 'field_crm_logging_db_name',
19 => 'field_cms_table_prefix',
20 => '_add_existing_field',
),
'format_type' => 'fieldset',
'format_settings' => array(
'label' => 'Overrides',
'instance_settings' => array(
'required_fields' => 1,
'id' => '',
'classes' => 'group-overrides field-group-fieldset',
'description' => 'You can override default settings for Ansible here, but you shouldn\'t need to unless a) incorporating an existing site with non-standard settings, b) using a non-internal git repo.',
),
'formatter' => 'collapsed',
),
);
$field_groups['group_overrides|node|website|form'] = $field_group;
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
$field_group->identifier = 'group_site_deploy|node|website|form';
$field_group->group_name = 'group_site_deploy';
$field_group->entity_type = 'node';
$field_group->bundle = 'website';
$field_group->mode = 'form';
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'Site Deploy Settings',
'weight' => '15',
'children' => array(
0 => 'field_site_title',
1 => 'field_admin_email',
),
'format_type' => 'fieldset',
'format_settings' => array(
'label' => 'Site Deploy Settings',
'instance_settings' => array(
'required_fields' => 1,
'id' => '',
'classes' => 'group-site-deploy field-group-fieldset',
'description' => 'You only need to fill these out if you\'re creating a new site via Ansible.',
),
'formatter' => 'collapsed',
),
);
$field_groups['group_site_deploy|node|website|form'] = $field_group;
// Translatables
// Included for use with string extractors like potx.
t('Ansible Fields');
t('Git');
t('Overrides');
t('Site Deploy Settings');
return $field_groups;
}