media.theme.inc has this line, but the module does not define a theme_media_type_icon() and it never uses the $icon variable later in this function either, so I think easiest is to just remove this line.

$icon = theme('media_type_icon', array('type' => $element['#object']->type));
CommentFileSizeAuthor
no-media-type-icon.patch948 bytesgábor hojtsy

Comments

gábor hojtsy’s picture

Title: theme:media_type_icon referenced but not defined » theme_media_type_icon() referenced but not defined
Version: 7.x-1.x-dev »

Fixing title.

JacobSingh’s picture

I believe we are using this for some types which don't generate thumbnails. Try uploading a pdf.

-J

gábor hojtsy’s picture

Well, since I'm not seeing the $icon variable used anywhere else in the function and i'm not seeing the theme function defined either, it does not look like it is used for anything.

JacobSingh’s picture

Version: » 7.x-1.x-dev
Status: Needs review » Closed (cannot reproduce)

This has already been fixed somewhere.