diff --git a/core/modules/responsive_image/responsive_image.module b/core/modules/responsive_image/responsive_image.module index bc0b431a0c69..5113afcc88a3 100644 --- a/core/modules/responsive_image/responsive_image.module +++ b/core/modules/responsive_image/responsive_image.module @@ -200,6 +200,8 @@ function theme_responsive_image_formatter($variables) { * - width: The width of the image (if known). * - height: The height of the image (if known). * - alt: The alternative text for text-based browsers. + * - title: The title text is displayed when the image is hovered in some + * popular browsers. * - breakpoints: An array containing breakpoints. * * @ingroup themeable @@ -262,13 +264,7 @@ function theme_responsive_image($variables) { } if (!empty($sources)) { - $attributes = array(); - foreach (array('alt', 'title') as $key) { - if (isset($variables[$key])) { - $attributes[$key] = $variables[$key]; - } - } - $output[] = ''; + $output[] = ''; // Add source tags to the output. foreach ($sources as $source) {