You are here

function exif_field_widget_info in Exif 7

Implements hook_field_widget_info().

File

./exif.module, line 498

Code

function exif_field_widget_info() {
  return array(
    'exif_readonly' => array(
      'label' => t('metadata from image'),
      'description' => t('field content is calculated from image field in the same content type (read only)'),
      'field types' => array(
        'text',
        'text_long',
        'text_with_summary',
        'taxonomy_term_reference',
        'date',
        'datetime',
        'datestamp',
      ),
      'settings' => array(
        'image_field' => '',
        'exif_field' => '',
        'exif_field_separator' => '',
      ),
      'behaviors' => array(
        'multiple values' => FIELD_BEHAVIOR_DEFAULT,
        'default value' => FIELD_BEHAVIOR_DEFAULT,
      ),
    ),
  );
}