diff options
-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'); } |