You are here

function _epsacrop_load_styles in EPSA Crop - Image Cropping 8.2

Same name and namespace in other branches
  1. 7.2 epsacrop.module \_epsacrop_load_styles()

Helper function that get all styles with epsacrop effect.

@access private

Return value

array

2 calls to _epsacrop_load_styles()
epsacrop_form_field_ui_field_edit_form_alter in ./epsacrop.module
Implements hook_form_FORM_ID_alter().
_epsacrop_load_style in ./epsacrop.module
This function load only on style that implement epsacrop effect.

File

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

Code

function _epsacrop_load_styles() {
  $return = array();
  $styles = image_styles();
  foreach ($styles as $style_name => $style) {
    foreach ($style['effects'] as $sid => $effect) {
      if ($effect['module'] == 'epsacrop') {
        $return[$style_name] = $style;
        break;
      }
    }
  }
  return $return;
}