function imagefield_crop_field_info in Imagefield Crop 7.3
Same name and namespace in other branches
- 7.2 imagefield_crop.module \imagefield_crop_field_info()
Implements hook_field_info().
File
- ./
imagefield_crop.module, line 6
Code
function imagefield_crop_field_info() {
return array(
'imagefield_crop' => array(
'label' => t('Image cropped'),
'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' => '',
'max_filesize' => '',
'alt_field' => 0,
'title_field' => 0,
'max_resolution' => '',
'min_resolution' => '',
'default_image' => 0,
),
'default_widget' => 'imagefield_crop_widget',
'default_formatter' => 'image',
'property_type' => 'field_item_image',
'property_callbacks' => array(
'entity_metadata_field_image_callback',
'entity_metadata_field_file_callback',
'entity_metadata_field_imagefield_crop_callback',
),
),
);
}