Created
January 11, 2014 16:40
-
-
Save pvhee/8373214 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/file_entity.module b/file_entity.module | |
index da2914f..aa78641 100644 | |
--- a/file_entity.module | |
+++ b/file_entity.module | |
@@ -2152,59 +2152,6 @@ function file_entity_upload_validators_pre_render($element) { | |
} | |
/** | |
- * Implements hook_file_default_displays_alter() on behalf of image.module. | |
- */ | |
-function image_file_default_displays_alter(&$file_displays) { | |
- // Images should be displayed as unstyled images by default. | |
- if (isset($file_displays['image__default__file_field_file_default'])) { | |
- $file_displays['image__default__file_field_file_default']->status = FALSE; | |
- } | |
- | |
- $file_display = new stdClass(); | |
- $file_display->api_version = 1; | |
- $file_display->name = 'image__default__file_field_image'; | |
- $file_display->weight = 50; | |
- $file_display->status = TRUE; | |
- $file_display->settings = array( | |
- 'image_style' => '', | |
- 'image_link' => '', | |
- ); | |
- $file_displays['image__default__file_field_image'] = $file_display; | |
- | |
- // Image previews should be displayed as image thumbnails by default. | |
- if (isset($file_displays['image__preview__file_field_file_default'])) { | |
- $file_displays['image__preview__file_field_file_default']->status = FALSE; | |
- } | |
- | |
- $file_display = new stdClass(); | |
- $file_display->api_version = 1; | |
- $file_display->name = 'image__preview__file_field_image'; | |
- $file_display->weight = 50; | |
- $file_display->status = TRUE; | |
- $file_display->settings = array( | |
- 'image_style' => 'thumbnail', | |
- 'image_link' => '', | |
- ); | |
- $file_displays['image__preview__file_field_image'] = $file_display; | |
- | |
- // Image teasers should be displayed as medium images by default. | |
- if (isset($file_displays['image__teaser__file_field_file_default'])) { | |
- $file_displays['image__teaser__file_field_file_default']->status = FALSE; | |
- } | |
- | |
- $file_display = new stdClass(); | |
- $file_display->api_version = 1; | |
- $file_display->name = 'image__teaser__file_field_image'; | |
- $file_display->weight = 50; | |
- $file_display->status = TRUE; | |
- $file_display->settings = array( | |
- 'image_style' => 'medium', | |
- 'image_link' => 'content', | |
- ); | |
- $file_displays['image__teaser__file_field_image'] = $file_display; | |
-} | |
- | |
-/** | |
* @name pathauto_file Pathauto integration for the core file module. | |
* @{ | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment