Commit 522b923a authored by Dries's avatar Dries

- Patch #774218 by jhedstrom: the RDFa markup for custom image field is invalid.

parent 99ec176a
......@@ -548,7 +548,7 @@ function rdf_preprocess_field(&$variables) {
// the file. We correct this by adding a resource attribute to the div if
// this field has a URI.
if (isset($item['uri'])) {
if (isset($element[$delta]['#image_style'])) {
if (!empty($element[$delta]['#image_style'])) {
$variables['item_attributes_array'][$delta]['resource'] = image_style_url($element[$delta]['#image_style'], $item['uri']);
else {
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