function focal_point_image_effect_info in Focal Point 7
Implements hook_image_effect_info().
1 call to focal_point_image_effect_info()
- _focal_point_get_image_styles in ./
focal_point.module - Get a list of all image styles that use a focal point effect.
File
- ./
focal_point.effects.inc, line 11 - Default image preset.
Code
function focal_point_image_effect_info() {
$effects = array(
'focal_point_scale_and_crop' => array(
'label' => t('Focal Point Scale And Crop'),
'help' => t('Scale and crop based on data provided by <em>Focal Point</em>.'),
'effect callback' => 'focal_point_scale_and_crop_effect',
'dimensions callback' => 'image_resize_dimensions',
'form callback' => 'focal_point_crop_form',
'summary theme' => 'focal_point_image_resize_summary',
),
'focal_point_crop' => array(
'label' => t('Focal Point Crop'),
'help' => t('Crop based on data provided by <em>Focal Point</em>.'),
'effect callback' => 'focal_point_crop_effect',
'dimensions callback' => 'image_resize_dimensions',
'form callback' => 'focal_point_crop_form',
'summary theme' => 'focal_point_image_crop_summary',
),
);
return $effects;
}