Closed (fixed)
Project:
D7 Media
Version:
7.x-2.x-dev
Component:
WYSIWYG integration
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Jun 2012 at 15:32 UTC
Updated:
12 Jul 2012 at 17:01 UTC
Jump to comment: Most recent file
Comments
Comment #1
Rob_Feature commentedClarifying title....
Comment #2
drzraf commentedprobably related #1421444: Does media_format_form() selects file styles the right way ?
Comment #3
devin carlson commentedMarked #1637310: File Types-> Manage Display ineffective after configuration. as a duplicate.
Comment #4
dave reidAgreed. Taking a look at this also makes me think there should be a 'default' view mode available as well.
Comment #5
dave reidPatch attached for review.
Comment #6
drzraf commentedIt partially works, almost every view_modes are still available.
In my case I disabled
file_styles_square_thumbnailbutcustom settingsfromentity_get_info('file')is still marked as TRUE.Moreover, by only calling
entity_get_info('file')how would you differentiate between an image for which a view_mode has been customized an another file bundle for which it hasn't been ?Anyway, the only
view_modeI never customized (token) disappeared after I applied the patch.Comment #7
dave reidI wasn't checking the proper function. Revised patch for review.
Comment #8
dave reidNeeded to be statically cached by file type.
Comment #9
drzraf commentedworking, thanks !
Comment #10
dave reidCommitted #8 to Git:
http://drupalcode.org/project/media.git/commit/2b2acd6 (7.x-2.x)
http://drupalcode.org/project/media.git/commit/76e7f47 (7.x-1.x)