You are here

function imagecrop_iframe in Image javascript crop 7

Render the imagecrop as an iframe.

1 string reference to 'imagecrop_iframe'
html-imagecrop.tpl.php in ./html-imagecrop.tpl.php

File

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

Code

function imagecrop_iframe($url, $width, $height, $text, $style, $element) {
  $output = '<div class="form-item imagecrop-button"' . $style . '>';
  $output .= '<div><label>' . t('Crop this image') . '</label></div>';
  $output .= '<div>';
  $output .= '<iframe src="' . $url . '" width="' . $width . '" height="' . $height . '"></iframe>';
  $output .= '</div></div>';
  return $output;
}