You are here

function theme_imagecache in ImageCache 5

Same name and namespace in other branches
  1. 5.2 imagecache.module \theme_imagecache()
  2. 6.2 imagecache.module \theme_imagecache()
1 theme call to theme_imagecache()
theme_imagecache_formatter in ./imagecache.module

File

./imagecache.module, line 742
Dynamic image resizer and image cacher.

Code

function theme_imagecache($namespace, $path, $alt = '', $title = '', $attributes = NULL) {
  $attributes = drupal_attributes($attributes);
  $imagecache_path = file_create_url(file_directory_path() . '/imagecache/' . $namespace . '/' . $path);
  return '<img src="' . $imagecache_path . '" alt="' . check_plain($alt) . '" title="' . check_plain($title) . '" ' . $attributes . ' />';
}