function theme_imagecache_formatter_path in ImageCache 6.2
1 string reference to 'theme_imagecache_formatter_path'
- imagecache_theme in ./
imagecache.module - Implementation of hook_theme().
File
- ./
imagecache.module, line 779 - Dynamic image resizer and image cacher.
Code
function theme_imagecache_formatter_path($element) {
// Inside a view $element may contain NULL data. In that case, just return.
if (empty($element['#item']['fid'])) {
return '';
}
// Extract the preset name from the formatter name.
$presetname = substr($element['#formatter'], 0, strrpos($element['#formatter'], '_'));
return imagecache_create_path($presetname, $element['#item']['filepath']);
}