function resp_img_replace_suffix in Responsive images and styles 7
Replace suffix if needed / possible
5 calls to resp_img_replace_suffix()
- resp_img_file_url_alter in ./
resp_img.module - Alter all image sources.
- resp_img_pp_field_slideshow in ./
resp_img.module - Support for field_slideshow.
- resp_img_pp_image in ./
resp_img.module - Support for general images.
- resp_img_url_outbound_alter in ./
resp_img.module - Alter all links for things like colorbox.
- _resp_img_replace in ./
resp_img.module
File
- ./
resp_img.module, line 158
Code
function resp_img_replace_suffix($path) {
$bestfit_suffix = resp_img_get_best_suffix();
$default_suffix = variable_get('resp_img_default_suffix', '');
if (isset($bestfit_suffix) && !empty($bestfit_suffix) && $bestfit_suffix != $default_suffix) {
$path = str_replace($default_suffix, $bestfit_suffix, $path);
}
return $path;
}