function theme_media_gallery_collection_thumbnail in Media Gallery 7
Same name and namespace in other branches
- 7.2 media_gallery.theme.inc \theme_media_gallery_collection_thumbnail()
Displays a media item (entity) as a thumbnail on a Gallery collection page
File
- ./
media_gallery.theme.inc, line 394 - Media Gallery Theming
Code
function theme_media_gallery_collection_thumbnail($variables) {
// In the default configuration of the module, the collection thumbnail
// display format is used for node teasers, and theme_media_gallery_teaser()
// bypasses calling this theme function. However, if someone configures their
// site differently (to use this display format in a different view mode), we
// need some sensible behavior here. For now, we just theme the media item
// the same way we theme it when it appears in a block thumbnail.
// @todo: Ideally, some of the code in theme_media_gallery_teaser() would
// move here instead, so that people could configure their site to
// reproduce the default "media gallery node teaser" style in other view
// modes as well.
return theme('media_gallery_block_thumbnail', $variables);
}