1 image.field.inc image_field_widget_info()

Implements hook_field_widget_info().

File

core/modules/image/image.field.inc, line 367
Implement an image field, based on the file module's file field.

Code

function image_field_widget_info() {
  return array(
    'image_image' => array(
      'label' => t('Image'),
      'field types' => array('image'),
      'settings' => array(
        'browser_view' => 'image_library',
        'progress_indicator' => 'throbber',
        'preview_image_style' => 'thumbnail',
      ),
      'behaviors' => array(
        'multiple values' => FIELD_BEHAVIOR_CUSTOM,
        'default value' => FIELD_BEHAVIOR_NONE,
      ),
    ),
  );
}