Hi,

I tried to export the File Entity settings (Video > Vimeo Video > Default) of the page admin/structure/file-types/manage/video/file-display into a feature, but apparently those settings are not (yet) exportable. Is that correct or am I missing something?

Thank you very much,
Maarten

Comments

gmclelland’s picture

Status: Active » Fixed

Are 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

james.williams’s picture

The 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.

thtas’s picture

Issue summary: View changes

Why 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.

thtas’s picture

Status: Closed (fixed) » Needs work
thtas’s picture

Patch attached to simply remove the defaults.
Does Media Youbube enable itself by default? Maybe do whatever that does to keep things standard.

rob c’s picture

Just a reroll for current dev, didn't address any other issues.