function imagecrop_modalframe in Image javascript crop 6
Render the imagecrop links for modalframe.
1 string reference to 'imagecrop_modalframe'
- imagecrop_showcrop in ./
imagecrop.admin.inc - Show the cropped image.
File
- ./
imagecrop.module, line 522 - Provides a javascript toolbox through an imagecache action.
Code
function imagecrop_modalframe($url, $width, $height) {
if (!module_exists('modalframe')) {
return FALSE;
}
// Send the Modal Frame javascript for parent windows to the page.
modalframe_parent_js();
$modalFrame = "Drupal.modalFrame.open({url:'{$url}',width:'{$width}',height:'{$height}'});";
return '[<a href="javascript:;" onclick="' . $modalFrame . '">' . t('Crop this image') . '</a>]';
}