diff --git a/file_entity.module b/file_entity.module index d84e46f..004fbdf 100644 --- a/file_entity.module +++ b/file_entity.module @@ -138,6 +138,15 @@ function file_entity_entity_info_alter(&$entity_info) { $entity_info['file']['bundles'][$type] = array_intersect_key($info, drupal_map_assoc(array('label', 'admin'))); $entity_info['file']['view callback'] = 'file_view_multiple'; } + + // Add a view mode for each core image style. + $image_styles = image_styles(); + foreach ($image_styles as $style_name => $style) { + $entity_info['file']['view modes']['image__' . $style_name] = array( + 'label' => 'Core style: ' . $style['name'], + 'custom settings' => FALSE, + ); + } } /**