-
Notifications
You must be signed in to change notification settings - Fork 0
/
rbv_rel.features.inc
102 lines (97 loc) · 2.21 KB
/
rbv_rel.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
<?php
/**
* @file
* rbv_rel.features.inc
*/
/**
* Implements hook_ctools_plugin_api().
*/
function rbv_rel_ctools_plugin_api($module = NULL, $api = NULL) {
if ($module == "field_group" && $api == "field_group") {
return array("version" => "1");
}
if ($module == "strongarm" && $api == "strongarm") {
return array("version" => "1");
}
}
/**
* Implements hook_node_info().
*/
function rbv_rel_node_info() {
$items = array(
'relation' => array(
'name' => t('Relazione'),
'base' => 'node_content',
'description' => t('Una relazione di collaborazione e cooperazione con un\'altra organizzazione della società civile.'),
'has_title' => '1',
'title_label' => t('Title'),
'help' => '',
),
);
return $items;
}
/**
* Implements hook_rdf_default_mappings().
*/
function rbv_rel_rdf_default_mappings() {
$schemaorg = array();
// Exported RDF mapping: relation
$schemaorg['node']['relation'] = array(
'rdftype' => array(
0 => 'schema:Organization/CollaborativeRelation',
1 => 'sioc:Item',
2 => 'foaf:Document',
),
'title' => array(
'predicates' => array(
0 => 'dc:title',
),
'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 => 'foaf: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',
),
);
return $schemaorg;
}