Active
Project:
File Entity (fieldable files)
Version:
7.x-2.0-unstable6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Oct 2012 at 18:47 UTC
Updated:
7 Apr 2016 at 16:12 UTC
Jump to comment: Most recent
Comments
Comment #1
tahiche commentedHi,
If I understand correctly, I faced a similar issue where I had defined "hook_file_default_displays()" in my custom module to create a file type and have the right displays. My "file_default_displays()" function I got after exporting a feature and copying the result, with all the formats and settings for my file type.
Like you point out, and I don´t know if it´s the same scenario, these default displays are not recorded to database but read from that file until you save the display form (for each view mode).
Based on the issue Default file entities are not exportable by features regarding the default types not being saved to DDBB and thus not exportable, I´m saving these defaults on module enabling (you can do it on install too, i guess).
Something like this...