You are here

function iek_image_padding_effect in Image effect kit 7

Effect callback for iek_image_border.

1 string reference to 'iek_image_padding_effect'
iek_image_effect_info in ./iek.module
Implements hook_image_effect_info().

File

./iek.module, line 543
Primarily Drupal hooks and global API functions to manipulate image styles.

Code

function iek_image_padding_effect(&$image, $data) {
  if (!iek_image_padding($image, $data)) {
    watchdog('image', 'Image add padding failed using the %toolkit toolkit on %path (%mimetype)', array(
      '%toolkit' => $image->toolkit,
      '%path' => $image->source,
      '%mimetype' => $image->info['mime_type'],
    ), WATCHDOG_ERROR);
    return FALSE;
  }
  return TRUE;
}