function _epsacrop_load_styles in EPSA Crop - Image Cropping 7.2
Same name and namespace in other branches
- 8.2 epsacrop.module \_epsacrop_load_styles()
Helper function that get all styles with epsacrop effect.
@access private
Return value
array
5 calls to _epsacrop_load_styles()
- epsacrop_crop_image_reuse_form in ./
epsacrop.module - Function that provide the effect form settings for reusing epsa crop.
- epsacrop_dialog in ./
epsacrop.module - epsacrop_dialog function.
- epsacrop_form_field_ui_field_edit_form_alter in ./
epsacrop.module - Implements hook_form_FORM_ID_alter().
- epsacrop_update_7201 in ./
epsacrop.install - Converts all the epsacrop coordinates to a new machine_name format. Issue related: http://drupal.org/node/1396500
- _epsacrop_load_style in ./
epsacrop.module - This function load only on style that implement epsacrop effect.
File
- ./
epsacrop.module, line 761 - 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' && $effect['name'] == 'epsacrop_crop') {
$return[$style_name] = $style;
break;
}
}
}
return $return;
}