You are here

function theme_imagecache_external in Imagecache External 7

Same name and namespace in other branches
  1. 7.2 imagecache_external.module \theme_imagecache_external()

Returns HTML for an image using a specific image style.

Parameters

$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.

File

./imagecache_external.module, line 106

Code

function theme_imagecache_external($variables) {
  if ($variables['path'] = imagecache_external_generate_path($variables['path'], $variables['style_name'])) {
    return theme('image_style', $variables);
  }
}