function _epsacrop_get_crop_actions in EPSA Crop - Image Cropping 6
Same name and namespace in other branches
- 6.2 epsacrop.module \_epsacrop_get_crop_actions()
Helper function for returning only imagecache preset actions with croping.
2 calls to _epsacrop_get_crop_actions()
- _epsacrop_get_crop_presets in ./
epsacrop.module - Helper function for returning simple array with only imagecache preset actions with croping.
- _epsacrop_get_field_actions in ./
epsacrop.module - Helper function for returning only imagecache preset actions with croping that was enabled for specific field.
File
- ./
epsacrop.module, line 566 - The main file of module
Code
function _epsacrop_get_crop_actions() {
$actions = array();
$presets = imagecache_presets();
foreach ($presets as $preset) {
foreach ($preset['actions'] as $action) {
if (strpos($action['action'], 'crop') !== FALSE) {
$actions[] = array(
'presetname' => $preset['presetname'],
'width' => $action['data']['width'],
'height' => $action['data']['height'],
);
}
}
}
return $actions;
}