Closed (outdated)
Project:
Styles
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Jan 2011 at 21:18 UTC
Updated:
11 Jun 2025 at 13:15 UTC
Jump to comment: Most recent
The file_styles default image theme function refers to an image in the core files module that does not exist:
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', // <-- this really is unknown!
'alt' => t('Thumbnail for !filename.', array('!filename' => $file->filename)),
'attributes' => array('width' => 100, 'height' => 75, 'class' => 'file-unknown'),
)
);
return $thumbnail;
}
Ideally this would display different images depending on the file type, and also allow file type images to be run through imagecache so that they fit into a list of files.
Comments
Comment #1
bluegeek9 commentedThank you for your contributions to this issue. As Drupal 7 has reached its End of Life and is no longer supported, we are closing this issue. We encourage you to upgrade to a supported version of Drupal.