Skip to content
Browse files

Only remove the core styles if not overridden.

  • Loading branch information...
1 parent eab39c2 commit 111390b8e4ad60d93bd6df40dade6ef228ad0db0 @jhedstrom jhedstrom committed Dec 30, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 os_base.module
View
2 os_base.module
@@ -105,7 +105,7 @@ function os_base_date_formats() {
*/
function os_base_image_styles_alter(&$styles) {
foreach (array('medium', 'large', 'thumbnail') as $remove) {
- if (isset($styles[$remove]) && $styles[$remove]['module'] == 'image') {
+ if (isset($styles[$remove]) && $styles[$remove]['module'] == 'image' && $styles[$remove]['storage'] === IMAGE_STORAGE_DEFAULT) {
unset($styles[$remove]);
}
}

0 comments on commit 111390b

Please sign in to comment.
Something went wrong with that request. Please try again.