-
Notifications
You must be signed in to change notification settings - Fork 0
/
fga_event_base.features.inc
144 lines (138 loc) · 3.07 KB
/
fga_event_base.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
<?php
/**
* @file
* fga_event_base.features.inc
*/
/**
* Implements hook_ctools_plugin_api().
*/
function fga_event_base_ctools_plugin_api() {
list($module, $api) = func_get_args();
if ($module == "field_group" && $api == "field_group") {
return array("version" => "1");
}
list($module, $api) = func_get_args();
if ($module == "relation" && $api == "relation_type_default") {
return array("version" => "1");
}
list($module, $api) = func_get_args();
if ($module == "strongarm" && $api == "strongarm") {
return array("version" => "1");
}
}
/**
* Implements hook_node_info().
*/
function fga_event_base_node_info() {
$items = array(
'event' => array(
'name' => t('Event'),
'base' => 'node_content',
'description' => t('A public-facing calendar event.'),
'has_title' => '1',
'title_label' => t('Name'),
'help' => '',
),
);
return $items;
}
/**
* Implements hook_rdf_default_mappings().
*/
function fga_event_base_rdf_default_mappings() {
$rdf_mappings = array();
// Exported RDF mapping: prompts
$rdf_mappings['taxonomy_term']['prompts'] = array(
'rdftype' => array(
0 => 'skos:Concept',
),
'name' => array(
'predicates' => array(
0 => 'rdfs:label',
1 => 'skos:prefLabel',
),
),
'description' => array(
'predicates' => array(
0 => 'skos:definition',
),
),
'vid' => array(
'predicates' => array(
0 => 'skos:inScheme',
),
'type' => 'rel',
),
'parent' => array(
'predicates' => array(
0 => 'skos:broader',
),
'type' => 'rel',
),
);
// Exported RDF mapping: event
$rdf_mappings['node']['event'] = array(
'rdftype' => array(
0 => 'sioc:Item',
1 => 'foaf:Document',
2 => 'ows-events:Event',
),
'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',
),
'field_venue' => array(
'type' => 'rel',
'predicates' => array(
0 => 'ows-events:Venue',
),
),
);
return $rdf_mappings;
}