You are here

function template_preprocess_media_thumbnail in D7 Media 7.3

Same name and namespace in other branches
  1. 7.4 includes/media.theme.inc \template_preprocess_media_thumbnail()
  2. 7 includes/media.theme.inc \template_preprocess_media_thumbnail()
  3. 7.2 includes/media.theme.inc \template_preprocess_media_thumbnail()

Preprocess the media thumbnail.

File

includes/media.theme.inc, line 61
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;
}