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/user/user.module | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'modules/user/user.module') diff --git a/modules/user/user.module b/modules/user/user.module index cf10cfe34..424916ef4 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -3255,3 +3255,21 @@ function user_cookie_save(array $values, array $fields = array('name', 'mail', ' } } } + +/** + * Implementation of hook_rdf_mapping(). + */ +function user_rdf_mapping() { + return array( + array( + 'type' => 'user', + 'bundle' => RDF_DEFAULT_BUNDLE, + 'mapping' => array( + 'rdftype' => array('sioc:User'), + 'name' => array( + 'predicates' => array('foaf:name'), + ), + ), + ), + ); +} -- cgit v1.2.3