rdf_comment_load

Versions
mediamosa-21
rdf_comment_load($comments)

Implements hook_comment_load().

Code

modules/rdf/rdf.module, line 375

<?php
function rdf_comment_load($comments) {
  foreach ($comments as $comment) {
    $comment->rdf_data['date'] = rdf_rdfa_attributes($comment->rdf_mapping['created'], $comment->created);
    $comment->rdf_data['nid_uri'] = url('node/' . $comment->nid);
    if ($comment->pid) {
      $comment->rdf_data['pid_uri'] = url('comment/' . $comment->pid, array('fragment' => 'comment-' . $comment->pid));
    }
  }
}
?>