function _imceimage_get_thumb in Imce CCK Image 6
Same name and namespace in other branches
- 6.2 imceimage.module \_imceimage_get_thumb()
1 call to _imceimage_get_thumb()
- theme_imceimage_formatter_thumb in ./
imceimage.module - displays the image as a link. given the class imceimage-link
File
- ./
imceimage.module, line 318
Code
function _imceimage_get_thumb($image) {
$thumb_prefix = 'thumb_';
$path = $image['imceimage_path'];
$thumb_name = $thumb_prefix . basename($path);
$thumb_path = dirname($path) . "/" . $thumb_name;
list($width, $height, $type, $image_attributes) = @getimagesize($thumb_path);
$thumb = array();
$thumb['imceimage_path'] = $thumb_path;
$thumb['imceimage_width'] = $width;
$thumb['imceimage_height'] = $height;
$thumb['imceimage_alt'] = $image['imceimage_alt'];
$thumb['imceimage_title'] = $image['imceimage_title'];
return $thumb;
}