You are here

function imagefield_focus_crop_form in ImageField Focus 6

Same name and namespace in other branches
  1. 7 imagefield_focus.effects.inc \imagefield_focus_crop_form()

Focus Crop

1 call to imagefield_focus_crop_form()
theme_imagefield_focus_crop in ./imagefield_focus_imagecache_actions.inc

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;
}