summaryrefslogtreecommitdiff
path: root/modules/comment
diff options
context:
space:
mode:
Diffstat (limited to 'modules/comment')
-rw-r--r--modules/comment/comment.module12
-rw-r--r--modules/comment/comment.test7
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);
}
-
}