function imagefield_focus_crop_form in ImageField Focus 6
Same name and namespace in other branches
- 7 imagefield_focus.effects.inc \imagefield_focus_crop_form()
Focus Crop
1 call to imagefield_focus_crop_form()
File
- ./
imagefield_focus_imagecache_actions.inc, line 115 - Written by Henri MEDOT <henri.medot[AT]absyx[DOT]fr> http://www.absyx.fr
Code
function imagefield_focus_crop_form($data = array()) {
$form['target'] = array(
'#type' => 'radios',
'#title' => t('Crop based on'),
'#options' => array(
'crop_rect only' => t('Crop rectangle only'),
'focus_rect only' => t('Focus rectangle only'),
'crop_rect first' => t('Crop rectangle if available, Focus rectangle otherwise'),
'focus_rect first' => t('Focus rectangle if available, Crop rectangle otherwise'),
),
'#default_value' => isset($data['target']) ? $data['target'] : 'crop_rect only',
);
return $form;
}