It would be nice if we could restrict the audio file formatter to only file types that have a mime type that match audio/*, and the same for the new video formatter for anything that has video/* mime types. This would be nice since we could replace how the Image field formatter only shows up for the Image file type.
Comments
Comment #1
dave reidInitial patch to add a 'file types' restriction to hook_file_formatter_info(). Also cleans up providing hook_file_formatter_info() from within hook_field_formatter_info().
Comment #2
dave reidErrant include in file_entity.file_default_displays.inc.
Comment #3
dave reidRerolled.
Comment #4
aaron commentedThis works as advertised.
Comment #5
dave reidCommitted #3 to 7.x-2.x. http://drupalcode.org/project/file_entity.git/commit/2b301c9