-
Notifications
You must be signed in to change notification settings - Fork 0
/
rbv_org.features.inc
263 lines (255 loc) · 5.85 KB
/
rbv_org.features.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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
<?php
/**
* @file
* rbv_org.features.inc
*/
/**
* Implements hook_ctools_plugin_api().
*/
function rbv_org_ctools_plugin_api($module = NULL, $api = NULL) {
if ($module == "field_group" && $api == "field_group") {
return array("version" => "1");
}
if ($module == "page_manager" && $api == "pages_default") {
return array("version" => "1");
}
if ($module == "panelizer" && $api == "panelizer") {
return array("version" => "1");
}
if ($module == "strongarm" && $api == "strongarm") {
return array("version" => "1");
}
}
/**
* Implements hook_views_api().
*/
function rbv_org_views_api($module = NULL, $api = NULL) {
return array("api" => "3.0");
}
/**
* Implements hook_node_info().
*/
function rbv_org_node_info() {
$items = array(
'org' => array(
'name' => t('Organizzazione'),
'base' => 'node_content',
'description' => t('Organizzazione della Società Civile. Associazione, Cooperativa Sociale, Impresa Sociale, Gruppo di Acquisto Solidale (GAS), Rete di Economia Solidale (RES), Comitato... e tutti gli altri tipi di gruppo.'),
'has_title' => '1',
'title_label' => t('Nome'),
'help' => '',
),
);
drupal_alter('node_info', $items);
return $items;
}
/**
* Implements hook_default_og_membership_type().
*/
function rbv_org_default_og_membership_type() {
$items = array();
$items['rbv_membership_default'] = entity_import('og_membership_type', '{
"name" : "rbv_membership_default",
"description" : "RBV membership default",
"language" : "",
"rdf_mapping" : []
}');
return $items;
}
/**
* Implements hook_rdf_default_mappings().
*/
function rbv_org_rdf_default_mappings() {
$schemaorg = array();
// Exported RDF mapping: org
$schemaorg['node']['org'] = array(
'rdftype' => array(
0 => 'schema:Organization',
1 => 'sioc:Item',
2 => 'foaf:Organization',
),
'title' => array(
'predicates' => array(
0 => 'schema:name',
),
'type' => 'property',
),
'created' => array(
'predicates' => array(
0 => 'dc:date',
1 => 'dc:created',
),
'datatype' => 'xsd:dateTime',
'callback' => 'date_iso8601',
),
'changed' => array(
'predicates' => array(
0 => 'dc:modified',
),
'datatype' => 'xsd:dateTime',
'callback' => 'date_iso8601',
),
'body' => array(
'predicates' => array(
0 => 'content:encoded',
),
),
'uid' => array(
'predicates' => array(
0 => 'sioc:has_creator',
),
'type' => 'rel',
),
'name' => array(
'predicates' => array(
0 => 'schema:name',
),
),
'comment_count' => array(
'predicates' => array(
0 => 'sioc:num_replies',
),
'datatype' => 'xsd:integer',
),
'last_activity' => array(
'predicates' => array(
0 => 'sioc:last_activity_date',
),
'datatype' => 'xsd:dateTime',
'callback' => 'date_iso8601',
),
'field_com_location' => array(
'predicates' => array(
0 => 'schema:address',
),
),
'url' => array(
'predicates' => array(
0 => 'schema:url',
),
'type' => 'rel',
),
'field_founding_date' => array(
'predicates' => array(
0 => 'schema:foundingDate',
),
),
'field_foundingdate' => array(
'predicates' => array(
0 => 'schema:foundingDate',
),
),
'field_com_tagline' => array(
'predicates' => array(
0 => 'schema:tagline',
),
),
'field_org_foundingdate' => array(
'predicates' => array(
0 => 'schema:foundingDate',
),
),
'field_com_mission' => array(
'predicates' => array(
0 => 'schema:mission',
),
),
'field_com_history' => array(
'predicates' => array(
0 => 'schema:history',
),
),
'field_com_description' => array(
'predicates' => array(
0 => 'schema:summary',
),
),
'field_com_categories' => array(
'predicates' => array(
0 => 'schema:issueArea',
),
'type' => 'rel',
),
'field_com_logo' => array(
'predicates' => array(
0 => 'schema:logo',
),
'type' => 'rel',
),
'field_com_tags' => array(
'predicates' => array(
0 => 'schema:keywords',
),
'type' => 'rel',
),
'field_com_email' => array(
'predicates' => array(
0 => 'schema:email',
),
),
'field_com_phone' => array(
'predicates' => array(
0 => 'schema:telephone',
),
),
'field_com_more_contacts' => array(
'predicates' => array(
0 => 'schema:otherContacts',
),
),
'field_com_foundingdate' => array(
'predicates' => array(
0 => 'schema:foundingDate',
),
),
'field_com_telephone' => array(
'predicates' => array(
0 => 'schema:telephone',
),
),
'field_com_social_links' => array(
'predicates' => array(
0 => 'schema:sameAs',
),
),
'field_com_date' => array(
'predicates' => array(
0 => 'schema:foundingDate',
),
),
'field_org_type' => array(
'predicates' => array(
0 => 'schema:orgType',
),
'type' => 'rel',
),
'field_com_more' => array(
'predicates' => array(
0 => 'schema:moreContacts',
),
),
'field_quick_links_links' => array(
'predicates' => array(
0 => 'schema:sameAs',
),
),
);
// Exported RDF mapping: user
$schemaorg['user']['user'] = array(
'rdftype' => array(
0 => 'sioc:UserAccount',
),
'name' => array(
'predicates' => array(
0 => 'foaf:name',
),
),
'homepage' => array(
'predicates' => array(
0 => 'foaf:page',
),
'type' => 'rel',
),
);
return $schemaorg;
}