You are here

function theme_media_crop_image in Media crop 7

For rendering the media (image), with applied crop/rotation settings.

File

./media_crop.module, line 1045
Media crop primary module file.

Code

function theme_media_crop_image($variables) {
  $file = $variables['file'];
  $mciid = $variables['media_crop']['media_crop_instance'];
  $image_variables = array(
    'path' => _media_crop_get_path($mciid, $file->uri),
    'attributes' => $variables['attributes'],
  );
  return theme('image', $image_variables);
}