diff --git a/core/modules/responsive_image/responsive_image.module b/core/modules/responsive_image/responsive_image.module index df1caea..d58a580 100644 --- a/core/modules/responsive_image/responsive_image.module +++ b/core/modules/responsive_image/responsive_image.module @@ -140,7 +140,7 @@ function responsive_image_theme() { * - attributes: Attributes for the picture element. * - style_name: The name of the style to be used to alter the original image. */ -function template_preprocess_picture(&$variables) { +function template_preprocess_responsive_image(&$variables) { // Make sure that width and height are proper values // If they exists we'll output them // @see http://www.w3.org/community/respimg/2012/06/18/florians-compromise/ @@ -167,7 +167,7 @@ function template_preprocess_picture(&$variables) { if (!empty($variables['breakpoints'])) { // Fallback image, output as source with media query. - $src_attributes = picture_get_image_dimensions($variables); + $src_attributes = responsive_image_get_image_dimensions($variables); $src_attributes['src'] = entity_load('image_style', $variables['style_name'])->buildUrl($variables['uri']); $variables['sources'][] = array( 'attributes' => new Attribute($src_attributes), @@ -212,7 +212,7 @@ function template_preprocess_picture(&$variables) { unset($variables['src']); } } - $src_attributes += picture_get_image_dimensions($new_sources[0]); + $src_attributes += responsive_image_get_image_dimensions($new_sources[0]); $variables['sources'][] = array( 'attributes' => new Attribute($src_attributes), );