summaryrefslogtreecommitdiff
path: root/modules/user
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-10-19 18:28:16 +0000
committerDries Buytaert <dries@buytaert.net>2009-10-19 18:28:16 +0000
commit24669bfb50d643330cd50cbeea21d19d51107a36 (patch)
tree93eca4ca9d1a4b409b6ee4aac75362080136a5a4 /modules/user
parent0b750209b6ead13c836852eb96bc6cc8f14de51f (diff)
downloadbrdo-24669bfb50d643330cd50cbeea21d19d51107a36.tar.gz
brdo-24669bfb50d643330cd50cbeea21d19d51107a36.tar.bz2
- Patch #493030 by scor, Stefan Freudenberg, pwolanin, fago, Benjamin Melançon, kriskras, dmitrig01, sun: added RDFa support to Drupal core. Oh my, oh my.
Diffstat (limited to 'modules/user')
-rw-r--r--modules/user/user.module18
1 files changed, 18 insertions, 0 deletions
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'),
+ ),
+ ),
+ ),
+ );
+}