You are here

function theme_file_styles_styles_default in Styles 7

Same name and namespace in other branches
  1. 7.2 contrib/file_styles/file_styles.theme.inc \theme_file_styles_styles_default()

File

contrib/file_styles/file_styles.theme.inc, line 31
Theme functions for File styles.

Code

function theme_file_styles_styles_default($variables) {
  $file = $variables['object'];
  $path = drupal_get_path('module', 'file');
  $thumbnail = theme('image', array(
    'path' => $path . '/images/file-unknown.png',
    'alt' => t('Thumbnail for !filename.', array(
      '!filename' => $file->filename,
    )),
    'attributes' => array(
      'width' => 100,
      'height' => 75,
      'class' => 'file-unknown',
    ),
  ));
  return $thumbnail;
}