You are here

function focal_point_crop_effect in Focal Point 7

Image effect callback.

1 string reference to 'focal_point_crop_effect'
focal_point_image_effect_info in ./focal_point.effects.inc
Implements hook_image_effect_info().

File

./focal_point.effects.inc, line 93
Default image preset.

Code

function focal_point_crop_effect(&$image, $data) {
  if ($crop_data = focal_point_effect_crop_data($image, $data)) {
    return image_crop_effect($image, $crop_data);
  }

  // At worst use the default effect and let Drupal handle the errors that
  // likely exist at this point.
  return image_crop_effect($image, $data);
}