You are here

function imagecrop_thickbox in Image javascript crop 6

Render the imagecrop links for thickbox.

File

./imagecrop.module, line 496
Provides a javascript toolbox through an imagecache action.

Code

function imagecrop_thickbox($url, $width, $height) {
  if (!module_exists('thickbox')) {
    return FALSE;
  }
  return '[<a class="thickbox" href="' . $url . '?KeepThis=true&TB_iframe=true&height=' . $height . '&width=' . $width . '">' . t('Crop this image') . '</a>]';
}