Hi, What are the chances of getting the media type in the test for type to handle feed enclosures? What could it hurt? Media should be a pretty popular use of Drupal files. Or is it suggested we create a media mapper? But wouldn't it just duplicate what is being done by file.inc? Or perhaps there should be a way to configure/add types handled by file.inc?
// file: feeds/mappers/file.inc
function file_feeds_processor_targets_alter(&$targets, $entity_type, $bundle_name) {
foreach (field_info_instances($entity_type, $bundle_name) as $name => $instance) {
$info = field_info_field($name);
// ***** Add media here ******
if (in_array($info['type'], array('file', 'image', 'media'))) {
....
Comments
Comment #1
Niklas Fiekas commentedSubscribe.
Comment #2
megachrizMappers for fields or properties provided by a contrib module, should go in that contrib module or - in this case - a "glue" module: Media Feeds.