From 24669bfb50d643330cd50cbeea21d19d51107a36 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 19 Oct 2009 18:28:16 +0000 Subject: =?UTF-8?q?-=20Patch=20#493030=20by=20scor,=20Stefan=20Freudenberg?= =?UTF-8?q?,=20pwolanin,=20fago,=20Benjamin=20Melan=C3=A7on,=20kriskras,?= =?UTF-8?q?=20dmitrig01,=20sun:=20added=20RDFa=20support=20to=20Drupal=20c?= =?UTF-8?q?ore.=20Oh=20my,=20oh=20my.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/forum/forum.module | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'modules/forum') diff --git a/modules/forum/forum.module b/modules/forum/forum.module index da83c86f6..e22a1c6ec 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -1132,3 +1132,29 @@ function _forum_update_forum_index($nid) { ->execute(); } } + +/** + * Implementation of hook_rdf_mapping(). + */ +function forum_rdf_mapping() { + return array( + array( + 'type' => 'node', + 'bundle' => 'forum', + 'mapping' => array( + 'rdftype' => array('sioct:Post', 'sioct:ForumTopic'), + 'taxonomy_forums' => array( + 'predicates' => array('sioc:has_container'), + 'type' => 'rel', + ), + ), + ), + array( + 'type' => 'taxonomy_term', + 'bundle' => 'forums', + 'mapping' => array( + 'rdftype' => array('sioct:Container'), + ), + ), + ); +} -- cgit v1.2.3