function template_preprocess_media_thumbnail in D7 Media 7
Same name and namespace in other branches
- 7.4 includes/media.theme.inc \template_preprocess_media_thumbnail()
- 7.2 includes/media.theme.inc \template_preprocess_media_thumbnail()
- 7.3 includes/media.theme.inc \template_preprocess_media_thumbnail()
File
- includes/media.theme.inc, line 311 
- Media Theming
Code
function template_preprocess_media_thumbnail(&$variables) {
  // Set the name for the thumbnail to be the filename.  This is done here so
  // that other modules can hijack the name displayed if it should not be the
  // filename.
  $variables['element']['#name'] = isset($variables['element']['#file']->filename) ? check_plain($variables['element']['#file']->filename) : NULL;
}