Closed (outdated)
Project:
D7 Media
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 May 2013 at 13:41 UTC
Updated:
26 Jan 2019 at 16:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
bburgFollow up:
You could use file_view() directly in the media_token_to_markup() function to generate the renderable array instead of media_get_file_without_label(), but I'm not certain of the reason behind rendering the file, and the file entity's fields separately.
Comment #2
bburgThe amount of code this replaces makes me alarmed, but here's a potential patch for anyone interested in it.
Comment #3
bburgComment #5
bburgComment #7
bburgComment #8
Tyler the Creator commentedI ran into this problem on 7.x-2.0-alpha3... The above patches don't really translate over though. I'll submit a patch if I figure out a clean solution. Any help would be greatly appreciated. Thanks!
Comment #9
Tyler the Creator commentedFixed my problem on alpha3. Attached is the patch. Consequently this patch also fixed an error I had with image fields on the file not displaying and throwing an undefined error
Notice: Undefined index: uri in theme_image_formatter() (line 602 of /.../modules/image/image.field.inc).Comment #10
ParisLiakos commentedAlso file is already populated from file_view now..no need to run that
we should also get rid of those, since file_view() covers them
Comment #11
chris matthews commentedClosing this issue as outdated. However, if you think this issue is still important, please let us know and we will gladly re-open it for review.
sincerely,
- the Drupal Media Team