function template_preprocess_imagecache_external_responsive in Imagecache External 8
Returns HTML for an image using a specific responsive image style.
Parameters
array $variables: An associative array containing:
- style_name: The name of the style to be used to alter the original image.
- path: The path of the image file relative to the Drupal files directory. This function does not work with images outside the files directory nor with remotely hosted images.
- alt: The alternative text for text-based browsers.
- title: The title text is displayed when the image is hovered in some popular browsers.
- attributes: Associative array of attributes to be placed in the img tag.
Return value
bool
File
- ./
imagecache_external.module, line 85 - Allows the usage of Image Styles on external images.
Code
function template_preprocess_imagecache_external_responsive(&$variables) {
if ($variables['uri'] = imagecache_external_generate_path($variables['uri'])) {
template_preprocess_responsive_image($variables);
}
return FALSE;
}