diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-10-20 17:33:43 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-10-20 17:33:43 +0000 |
commit | 8f21cc40259db9406e00a083b4b6ca2ff9ebbb57 (patch) | |
tree | 0e420408ae7173fd9d03ec48ef7aa064adbb6f3c /modules/comment | |
parent | 0fa300a696e42483d6ca3a94ba8ce74b7cbea2be (diff) | |
download | brdo-8f21cc40259db9406e00a083b4b6ca2ff9ebbb57.tar.gz brdo-8f21cc40259db9406e00a083b4b6ca2ff9ebbb57.tar.bz2 |
#493030 follow-up by sun: Clean-ups to RDF module.
Diffstat (limited to 'modules/comment')
-rw-r--r-- | modules/comment/comment.module | 12 | ||||
-rw-r--r-- | modules/comment/comment.test | 7 |
2 files changed, 10 insertions, 9 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 718a41921..2f520a183 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -2496,7 +2496,7 @@ function comment_filter_format_delete($format, $fallback) { } /** - * Implementation of hook_rdf_mapping(). + * Implements hook_rdf_mapping(). */ function comment_rdf_mapping() { return array( @@ -2505,7 +2505,7 @@ function comment_rdf_mapping() { 'bundle' => RDF_DEFAULT_BUNDLE, 'mapping' => array( 'rdftype' => array('sioct:Post'), - 'title' => array( + 'title' => array( 'predicates' => array('dc:title'), ), 'created' => array( @@ -2513,16 +2513,16 @@ function comment_rdf_mapping() { 'datatype' => 'xsd:dateTime', 'callback' => 'date_iso8601', ), - 'body' => array( + 'body' => array( 'predicates' => array('content:encoded'), ), - 'pid' => array( + 'pid' => array( 'predicates' => array('sioc:reply_of'), ), - 'uid' => array( + 'uid' => array( 'predicates' => array('sioc:has_creator'), ), - 'name' => array( + 'name' => array( 'predicates' => array('foaf:name'), ), ), diff --git a/modules/comment/comment.test b/modules/comment/comment.test index 7987db622..bcf3cfe01 100644 --- a/modules/comment/comment.test +++ b/modules/comment/comment.test @@ -865,8 +865,10 @@ class CommentRSSUnitTest extends CommentHelperCase { } } -class RdfaCommentTestCase extends CommentHelperCase { - +/** + * Test RDFa markup for comments. + */ +class CommentRdfaTestCase extends CommentHelperCase { public static function getInfo() { return array( 'name' => 'RDFa comment markup', @@ -911,5 +913,4 @@ class RdfaCommentTestCase extends CommentHelperCase { $comment_author = $this->xpath("//div[@typeof='sioct:Post']//*[contains(@property, 'foaf:name')]"); $this->assertEqual((string)$comment_author[0], $this->web_user->name); } - } |