function image_field_info

Implements hook_field_info().

File

modules/image/image.field.inc, line 11

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' => variable_get('file_default_scheme', 'public'),
                'default_image' => 0,
            ),
            'instance_settings' => array(
                'file_extensions' => 'png gif jpg jpeg',
                'file_directory' => '[date:custom:Y]-[date:custom:m]',
                'max_filesize' => '',
                'alt_field' => 0,
                'title_field' => 0,
                'max_resolution' => '',
                'min_resolution' => '',
                'default_image' => 0,
            ),
            'default_widget' => 'image_image',
            'default_formatter' => 'image',
        ),
    );
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.