Needs work
Project:
Media: Vimeo
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Dec 2012 at 15:10 UTC
Updated:
17 Aug 2015 at 14:13 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
gmclelland commentedAre you using display suite or entity_view_mode modules to create your view modes?
I believe DS already has this and Entity_view_mode just added it as well #1425620: Features Module Support
Hope that helps
To keep the issues low, I'm setting this to fixed. If you are still having a problem, feel free to reopen.
Comment #3
james.williamsThe file display settings can't be exported with Features because they are declared by media_vimeo in a hook_file_default_displays() rather than just being written to the database. Only one module (features or otherwise) can declare a default display (or other features component), so Features doesn't allow another module to export them. The media: youtube project has the same problem.
It's possible to implement hook_file_default_displays_alter() in your module's .module file to change the original default file display declaration to have the settings that you want, but this is more of an alternative approach to solving the problem than actually allowing the configuration to be exported normally into a feature.
Comment #4
thtas commentedWhy bother implementing hook_file_default_displays at all?
If you don't implement it, you still get the formatter defaults (from hook_file_formatter_info) but just means you have to enable the display as an extra step.
Maybe it could even be done in hook_enable instead to make it simpler.
Comment #5
thtas commentedComment #6
thtas commentedPatch attached to simply remove the defaults.
Does Media Youbube enable itself by default? Maybe do whatever that does to keep things standard.
Comment #7
rob c commentedJust a reroll for current dev, didn't address any other issues.