You are here

function manualcrop_preprocess_image in Manual Crop 7

Preprocessing for theme_image(); Force reloading of an image after re-cropping.

File

./manualcrop.module, line 566

Code

function manualcrop_preprocess_image(&$variables) {
  if (!empty($variables['style_name'])) {
    $url = _manualcrop_add_cache_control($variables['style_name'], $variables['path']);
    if ($url) {
      $variables['path'] = $url;
    }
  }
}