Commit ff79d9d1 authored by catch's avatar catch
Browse files

Issue #678594 by linclark, mlncn, kathyh: Fix RDFa markup for file/image formatters.

parent e0b74b5b
......@@ -781,6 +781,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');
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment