You are here

function _epsacrop_load_style in EPSA Crop - Image Cropping 7.2

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

This function load only on style that implement epsacrop effect.

@access private

Parameters

string $style_name:

Return value

bool

3 calls to _epsacrop_load_style()
epsacrop_crop_image in ./epsacrop.module
Apply the effect to the image.
epsacrop_crop_image_reuse in ./epsacrop.module
Apply the effect to the image on reuse.
epsacrop_dialog in ./epsacrop.module
epsacrop_dialog function.

File

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

Code

function _epsacrop_load_style($style_name) {
  if (empty($style_name)) {
    return FALSE;
  }
  $styles = _epsacrop_load_styles();
  if (isset($styles[$style_name]) && !empty($styles[$style_name])) {
    return $styles[$style_name];
  }
  return FALSE;
}