You are here

function imagecrop_shadowbox in Image javascript crop 6

Render the imagecrop links for shadowbox.

File

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

Code

function imagecrop_shadowbox($url, $width, $height) {
  if (!module_exists('shadowbox')) {
    return FALSE;
  }
  return '[<a rel="shadowbox;height=' . $height . ';width=' . $width . ';player=iframe" href="' . $url . '">' . t('Crop this image') . '</a>]';
}