function theme_imagecrop_result in Image javascript crop 6
Same name and namespace in other branches
- 5 imagecrop.module \theme_imagecrop_result()
Theme cropped image result.
Parameters
string $presetname:
string $filepath:
string $alt:
string $attributes:
Return value
image
1 theme call to theme_imagecrop_result()
- imagecrop_showcrop in ./
imagecrop.admin.inc - Show the cropped image.
File
- ./
imagecrop.module, line 873 - Provides a javascript toolbox through an imagecache action.
Code
function theme_imagecrop_result($presetname, $filepath, $alt = '', $attributes = NULL) {
$url = imagecache_create_url($presetname, $filepath, TRUE);
return '<img src="' . $url . '" alt="' . check_plain($alt) . '" title="' . check_plain($alt) . '" ' . $attributes . ' />';
}