diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2011-12-22 01:42:33 -0800 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2011-12-22 01:42:33 -0800 |
commit | 640507b6ba9bf9796739f03913bd1fe5aadac679 (patch) | |
tree | 8ee3e8aa916df89aa7f7c4ad6a937dbd8cba20d3 /modules | |
parent | d7b2e5aa3652198cff340131d44c2f6e5c242aac (diff) | |
download | brdo-640507b6ba9bf9796739f03913bd1fe5aadac679.tar.gz brdo-640507b6ba9bf9796739f03913bd1fe5aadac679.tar.bz2 |
Issue #678594 follow-up by mlncn: Add clarifying comment to RDFa markup for file/image formatters.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/rdf/rdf.module | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/rdf/rdf.module b/modules/rdf/rdf.module index ebecd4237..70b684c68 100644 --- a/modules/rdf/rdf.module +++ b/modules/rdf/rdf.module @@ -769,6 +769,9 @@ function rdf_field_attach_view_alter(&$output, $context) { * Implements MODULE_preprocess_HOOK(). */ function rdf_preprocess_image(&$variables) { + // Adds the RDF type for image. We cannot use the usual entity-based mapping + // to get 'foaf:Image' because image does not have its own entity type or + // bundle. $variables['attributes']['typeof'] = array('foaf:Image'); } |