Skip to content

Commit

Permalink
Merge pull request #41 from SU-SWS/HSDO-1033-7.x-4.2
Browse files Browse the repository at this point in the history
HSDO-1033 7.x-4.2 release
  • Loading branch information
boznik committed Sep 14, 2017
2 parents 5da51ad + d71c44c commit 8c7e143
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
Stanford Image Styles x.x-x.x xxxx-xx-xx
Stanford Image Styles
--------------------------------------
7.x-4.2 2017-09-11
----------------------------------------
- SOE-1949: Added square_370_x_370
- HSDO-955 added new header image style
- SOE-1738: created full_width_banner_tall image style


7.x-4.1 2017-05-18
----------------------------------------
- Bug fix when classes is a string vs array
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# [Stanford Image Styles](https://github.com/SU-SWS/stanford_image_styles)
##### Version: 7.x-4.0

Maintainers: [cjwest](https://github.com/cjwest), [meganem](https://github.com/meganem)
[Changelog.txt](CHANGELOG.txt)
Expand Down
2 changes: 1 addition & 1 deletion stanford_image_styles.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = Stanford Image Styles
description = Provides some default image style presets
core = 7.x
package = Stanford
version = 7.x-4.1
version = 7.x-4.2
project = stanford_image_styles
dependencies[] = hires_images
dependencies[] = image
Expand Down
10 changes: 10 additions & 0 deletions stanford_image_styles.module
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,13 @@ function stanford_image_styles_preprocess_image_style(array &$vars) {
}
$vars['attributes']['class'][] = "image-style-" . drupal_clean_css_identifier($vars['style_name']);
}

/**
* Implements hook_preprocess_image().
*/
function stanford_image_styles_preprocess_image(&$variables) {
if (empty($variables['alt'])) {
// Make sure alt text is always set even if its empty.
$variables['alt'] = '';
}
}

0 comments on commit 8c7e143

Please sign in to comment.