You are here

function resp_img_pp_image in Responsive images and styles 7

Support for general images.

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

File

./resp_img.module, line 249

Code

function resp_img_pp_image(&$variables) {
  resp_img_add_js();
  if (isset($variables['style_name']) && $variables['style_name'] != resp_img_replace_suffix($variables['style_name'])) {
    $variables['style_name'] = resp_img_replace_suffix($variables['style_name']);
    $variables['path'] = resp_img_replace_suffix($variables['path']);
    foreach (array(
      'width',
      'height',
    ) as $key) {
      if (isset($variables[$key])) {
        unset($variables[$key]);
      }
    }
  }
}