Commit fb1d5ff6 authored by Mikhail Khasaya's avatar Mikhail Khasaya Committed by Mikhail Khasaya
Browse files

Issue #3302651 by dillix: Fix field widget selection

parent 7720f401
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -82,3 +82,11 @@ function odt_importer_entity_presave(EntityInterface $entity) {
    }
  }
}

/**
 * Implements hook_field_widget_info_alter().
 */
function odt_importer_field_widget_info_alter(array &$info) {
  // Let a odt_file field type re-use a file_generic widget.
  $info['file_generic']['field_types'][] = 'odt_file';
}