You are here

function exif_field_widget_info_alter in Exif 7

Implements hook_field_widget_info_alter().

File

./exif.module, line 520

Code

function exif_field_widget_info_alter(&$info) {

  // By default the field types is an empty array.
  $field_types = array(
    'text',
    'text_long',
    'taxonomy_term_reference',
    'date',
    'datetime',
    'datestamp',
  );
  $info['options_select']['field types'] = array_unique(array_merge($info['options_select']['field types'], $field_types));
  $info['options_buttons']['field types'] = array_unique(array_merge($info['options_buttons']['field types'], $field_types));
}