diff --git a/video_embed_field.field.inc b/video_embed_field.field.inc index cd42fb2..29358f5 100644 --- a/video_embed_field.field.inc +++ b/video_embed_field.field.inc @@ -439,9 +439,11 @@ function video_embed_field_field_formatter_view($entity_type, $entity, $field, $ '#markup' => $item['description'], '#suffix' => '', ); + $alt = $item['description']; } else { $description = array(); + $alt = ''; } // Render the field. @@ -478,7 +480,7 @@ function video_embed_field_field_formatter_view($entity_type, $entity, $field, $ $element[$delta] = array( '#theme' => 'image_formatter', - '#item' => array('uri' => $item['thumbnail_path']), + '#item' => array('uri' => $item['thumbnail_path'], 'alt' => $alt), '#image_style' => $display['settings']['image_style'], '#path' => isset($path) ? $path : '', );