You are here

function imagefield_crop_field_widget_info in Imagefield Crop 7

Same name and namespace in other branches
  1. 7.3 imagefield_crop.module \imagefield_crop_field_widget_info()
  2. 7.2 imagefield_crop.module \imagefield_crop_field_widget_info()

Implements hook_field_widget_info().

File

./imagefield_crop.module, line 11
Provide a widget to crop uploaded image.

Code

function imagefield_crop_field_widget_info() {
  return array(
    'imagefield_crop_widget' => array(
      'label' => t('Image with cropping'),
      'field types' => array(
        'image',
      ),
      'settings' => array(
        'progress_indicator' => 'throbber',
        'preview_image_style' => 'thumbnail',
        'collapsible' => 2,
        'resolution' => '200x150',
        'enforce_ratio' => TRUE,
        'enforce_minimum' => TRUE,
        'croparea' => '500x500',
      ),
      'behaviors' => array(
        'multiple values' => FIELD_BEHAVIOR_CUSTOM,
        'default value' => FIELD_BEHAVIOR_NONE,
      ),
    ),
  );
}