You are here

function theme_media_browser_thumbnails in D7 Media 7

Display a item list of files as thumbnails. Implements the admin thumbnail theme for now- serves as a wrapper

Parameters

$files: An array of file objects to display. @return

File

includes/media.theme.inc, line 110
Media Theming

Code

function theme_media_browser_thumbnails($variables) {
  $files = $variables['files'];
  $style_name = $variables['style_name'];
  $thumbnails = array();
  foreach ($files as $file) {
    $thumbnails[] = theme('media_admin_thumbnail', array(
      'file' => $file,
      'style_name' => $style_name,
    ));
  }
  return theme('item_list', array(
    'items' => $thumbnails,
    'attributes' => array(
      'class' => 'media_content_navigator results',
    ),
  ));
}