You are here

function _epsacrop_get_effect in EPSA Crop - Image Cropping 7.2

Same name and namespace in other branches
  1. 8.2 epsacrop.module \_epsacrop_get_effect()

Return the effect issue from the module.

@access private

Parameters

mixed $style:

Return value

void

2 calls to _epsacrop_get_effect()
epsacrop_crop_image in ./epsacrop.module
Apply the effect to the image.
epsacrop_dialog in ./epsacrop.module
epsacrop_dialog function.

File

./epsacrop.module, line 802
The main file of module

Code

function _epsacrop_get_effect($style) {
  if (empty($style) || !is_array($style) || (!isset($style['effects']) || !is_array($style['effects']))) {
    return FALSE;
  }
  foreach ($style['effects'] as $eid => $effect) {
    if ($effect['module'] == 'epsacrop') {
      return array(
        $eid => $effect,
      );
    }
  }
  return FALSE;
}