1.20.x image.field.inc | image_field_info() |
Implements hook_field_info().
File
- modules/
image/ image.field.inc, line 10 - Implement an image field, based on the file module's file field.
Code
function image_field_info() {
return array(
'image' => array(
'label' => t('Image'),
'description' => t('This field stores the ID of an image file as an integer value.'),
'settings' => array(
'uri_scheme' => config_get('system.core', 'file_default_scheme'),
'default_image' => '',
),
'instance_settings' => array(
'file_extensions' => 'png gif jpg jpeg',
'file_directory' => '',
'max_filesize' => '',
'alt_field' => 0,
'title_field' => 0,
'max_dimensions' => '',
'min_dimensions' => '',
'default_image' => '',
'orientate' => 0,
),
'default_widget' => 'image_image',
'default_formatter' => 'image',
'default_token_formatter' => 'file_url_plain',
),
);
}