function _imagefield_crop_formatter_theme_function in Imagefield Crop 6
Helper function to return the appropriate theme function from a formatter.
Parameters
$formatter: String formatter to derive the theme function to handle the element.
Return value
String function name.
1 call to _imagefield_crop_formatter_theme_function()
- theme_imagefield_crop_formatter_uncropped in ./
imagefield_crop.module - Theme function to refactor the field element to use the uncropped file in the imagecache formatter.
File
- ./
imagefield_crop.module, line 259
Code
function _imagefield_crop_formatter_theme_function($formatter) {
if (strpos($formatter, '_default_uncropped')) {
return 'theme_imagecache_formatter_default';
}
if (strpos($formatter, '_linked_uncropped')) {
return 'theme_imagecache_formatter_linked';
}
if (strpos($formatter, '_imagelink_uncropped')) {
return 'theme_imagecache_formatter_imagelink';
}
if (strpos($formatter, '_path_uncropped')) {
return 'theme_imagecache_formatter_path';
}
if (strpos($formatter, '_url_uncropped')) {
return 'theme_imagecache_formatter_url';
}
}