Now I must admit this bug is a bit of an outside case. Usually there wouldn't be much call to use the media_gallery module but change the field formatter on the gallery media field of the gallery content type to one other than the default.
However, there is code in the module that seems to make assumptions on the fact. If I want to switch to a different field formatter the media_gallery_node_view_alter() doesn't check the formatter being used before trying to set #file and #contextual_links on the build array. Similarly if I want to use the Media gallery formatter on a different content type it will not work.
I don't know if this is intended but ideally I would prefer the implementation of hook_node_view_alter() was tied closer to the formatter than the bundle type.
Comments
Comment #1
rickvug commentedsubscribe.
Comment #2
Ravi.J commentedsubscribe
Comment #3
lsolesen commentedFound a solution
Comment #4
lsolesen commentedNo activity.
Comment #5.0
(not verified) commentedfix typo