-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcambridge_events.field_group.inc
110 lines (103 loc) · 3.18 KB
/
cambridge_events.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
<?php
/**
* @file
* cambridge_events.field_group.inc
*/
/**
* Implements hook_field_group_info().
*/
function cambridge_events_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_contact_details|node|event|form';
$field_group->group_name = 'group_contact_details';
$field_group->entity_type = 'node';
$field_group->bundle = 'event';
$field_group->mode = 'form';
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'Contact details',
'weight' => '1',
'children' => array(
0 => 'field_contact_name',
1 => 'field_contact_email',
2 => 'field_contact_phone',
3 => 'field_event_url',
),
'format_type' => 'tab',
'format_settings' => array(
'formatter' => 'closed',
'instance_settings' => array(
'description' => '',
'classes' => 'group-contact-details field-group-tab',
'required_fields' => 1,
),
),
);
$field_groups['group_contact_details|node|event|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_content|node|event|form';
$field_group->group_name = 'group_content';
$field_group->entity_type = 'node';
$field_group->bundle = 'event';
$field_group->mode = 'form';
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'Content',
'weight' => '0',
'children' => array(
0 => 'body',
1 => 'field_event_date',
2 => 'field_image',
3 => 'field_event_location',
4 => 'title',
),
'format_type' => 'tab',
'format_settings' => array(
'label' => 'Content',
'instance_settings' => array(
'required_fields' => 1,
'classes' => 'group-content field-group-tab',
'description' => '',
),
'formatter' => 'closed',
),
);
$field_groups['group_content|node|event|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_tags|node|event|form';
$field_group->group_name = 'group_tags';
$field_group->entity_type = 'node';
$field_group->bundle = 'event';
$field_group->mode = 'form';
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'Tags',
'weight' => '2',
'children' => array(
0 => 'field_subject_ref',
),
'format_type' => 'tab',
'format_settings' => array(
'formatter' => 'closed',
'instance_settings' => array(
'description' => '',
'classes' => 'group-tags field-group-tab',
'required_fields' => 1,
),
),
);
$field_groups['group_tags|node|event|form'] = $field_group;
// Translatables
// Included for use with string extractors like potx.
t('Contact details');
t('Content');
t('Tags');
return $field_groups;
}