You are here

function imagefield_crop_field_info in Imagefield Crop 7.2

Same name and namespace in other branches
  1. 7.3 imagefield_crop.module \imagefield_crop_field_info()

Implements hook_field_info().

File

./imagefield_crop.module, line 54
Functionality and Drupal hook implementations for the Imagefield Crop module.

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',
      'default_token_formatter' => 'file_url_plain',
      'property_type' => 'field_item_image',
      'property_callbacks' => array(
        'entity_metadata_field_image_callback',
        'entity_metadata_field_file_callback',
      ),
    ),
  );
}