You are here

function resp_img_pp_field_slideshow in Responsive images and styles 7

Support for field_slideshow.

1 string reference to 'resp_img_pp_field_slideshow'
resp_img_theme_registry_alter in ./resp_img.module
Implements hook_theme_registry_alter().

File

./resp_img.module, line 231

Code

function resp_img_pp_field_slideshow(&$variables) {
  resp_img_add_js();
  if (isset($variables['image_style'])) {
    $variables['image_style'] = resp_img_replace_suffix($variables['image_style']);
  }
  if (isset($variables['items']) && is_array($variables['items'])) {
    foreach ($variables['items'] as $key => $item) {
      if (isset($variables['items'][$key]['path']['path'])) {
        $variables['items'][$key]['path']['path'] = resp_img_replace_suffix($variables['items'][$key]['path']['path']);
      }
    }
  }
}