function theme_imagecrop_result in Image javascript crop 5
Same name and namespace in other branches
- 6 imagecrop.module \theme_imagecrop_result()
Theme imagecrop. Adds time to the image so we make sure the brower always loads the latest version of the image.
Parameters
string $presetname:
string $filepath:
string $alt:
string $attributes:
Return value
image
1 theme call to theme_imagecrop_result()
- imagecrop_showcrop in ./
imagecrop.module - Show the cropped image.
File
- ./
imagecrop.module, line 598 - Provides a javascript toolbox through an imagecache action.
Code
function theme_imagecrop_result($presetname, $filepath, $alt = '', $attributes = NULL) {
$url = imagecache_create_url($presetname, $filepath);
return '<img src="' . $url . '?time=' . time() . '" alt="' . check_plain($alt) . '" title="' . check_plain($alt) . '" ' . $attributes . ' />';
}