diff --git a/core/modules/rdf/rdf.module b/core/modules/rdf/rdf.module index a2f74a3..6ee8820 100644 --- a/core/modules/rdf/rdf.module +++ b/core/modules/rdf/rdf.module @@ -464,16 +464,6 @@ function rdf_process(&$variables, $hook) { $variables[$variable_name] = theme('rdf_template_variable_wrapper', array('content' => $variables[$variable_name], 'attributes' => $attributes, 'context' => $context)); } } - // Handles additional attributes about a template entity that for RDF parsing - // reasons, can't be placed into that template's $attributes variable. This - // is "meta" information that is related to particular content, so render it - // close to that content. - if (!empty($variables['rdf_metadata_attributes'])) { - if (!isset($variables['content']['#prefix'])) { - $variables['content']['#prefix'] = ''; - } - $variables['content']['#prefix'] = theme('rdf_metadata', array('metadata' => $variables['rdf_metadata_attributes'])) . $variables['content']['#prefix']; - } } /** @@ -756,6 +746,13 @@ function rdf_preprocess_comment(&$variables) { $variables['rdf_metadata_attributes'][] = $parent_comment_attributes; } } + // Adds RDF metadata markup above comment body. + if (!empty($variables['rdf_metadata_attributes'])) { + if (!isset($variables['content']['comment_body']['#prefix'])) { + $variables['content']['comment_body']['#prefix'] = ''; + } + $variables['content']['comment_body']['#prefix'] = theme('rdf_metadata', array('metadata' => $variables['rdf_metadata_attributes'])) . $variables['content']['comment_body']['#prefix']; + } } /**