1 image.field.inc | image_field_info() |
Implements hook_field_info().
File
- core/
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' => implode(' ', image_get_supported_extensions()),
'file_directory' => '',
'max_filesize' => '',
'alt_field' => 1,
'alt_field_required' => 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',
),
);
}