Closed (fixed)
Project:
D7 Media
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Jan 2012 at 17:34 UTC
Updated:
7 Aug 2015 at 01:56 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pomliane commentedComment #2
gmclelland commentedsimilar issue for reference #1608172: Skip wysiwyg format dialog, set and use default values programmatically
Comment #3
johnpitcairn commentedIt's certainly possible to implement hook_form_media_format_form_alter() in a module, and manipulate everything there.
But hopefully a better (UI) solution for the general media-format vs image-styles confusion will emerge. The situation at present is convoluted and confusing to say the least.
Comment #4
devin carlson commentedAs John Pitcairn mentioned in #3, you can currently modify the file styles presented to users by implementing
hook_form_media_format_form_alter()in a custom module.For example, to remove the "large" file style from being selectable, add the following to the module "example":
Work on creating an easier method of configuring the available file styles in occurring in #1632502: Limit WYSIWYG View Modes to Enabled Modes and #1283844: [meta] Improve WYSIWYG integration.
Comment #5
rwohlebFor anyone interested, I'm attaching some example code that will modify the browser settings form allowing you to select which file view/display modes to allow. I'm not attaching a patch since I don't think this is really the way we want to take it, but it's a decent stop-gap measure.