function image_field_widget_info in Drupal 7
Implements hook_field_widget_info().
File
- modules/
image/ image.field.inc, line 284 - 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(
'progress_indicator' => 'throbber',
'preview_image_style' => 'thumbnail',
),
'behaviors' => array(
'multiple values' => FIELD_BEHAVIOR_CUSTOM,
'default value' => FIELD_BEHAVIOR_NONE,
),
),
);
}