rdf_preprocess_comment

function rdf_preprocess_comment

rdf_preprocess_comment(&$variables)

Implements hook_preprocess_HOOK() for comment templates.

File

core/modules/rdf/rdf.module, line 447
Enables semantically enriched output for Drupal sites in the form of RDFa.

Code

function rdf_preprocess_comment(&$variables) {
  $comment = $variables['comment'];
  $mapping = rdf_get_mapping('comment', $comment->bundle());
  $bundle_mapping = $mapping->getPreparedBundleMapping();

  if (!empty($bundle_mapping['types']) && !isset($comment->in_preview)) {
    // Adds RDFa markup to the commen