Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is there a particular reason why the image attributes are completely ignored in theme_colorbox_image_formatter ?
I ran into this after I preprocessing an image field and set some additional classes. The classes get lost, because attributes are not transfered to theme_colorbox_imagefield afterwards.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2086403-image-attributes.patch | 451 bytes | rustyy |
Comments
Comment #1
rustyy CreditAttribution: rustyy commentedI've generated a patch, providing the attributes and this should work with theme_colorbox_imagefield() that uses theme_image/theme_image_style.
Comment #2
kaidjohnson CreditAttribution: kaidjohnson commentedThis patch does the job perfectly for us. +1 RTBC
Comment #3
kaidjohnson CreditAttribution: kaidjohnson commentedShould probably run a test first...No tests to run...Comment #4
kaidjohnson CreditAttribution: kaidjohnson commentedBack to RTBC.
Comment #5
frjo CreditAttribution: frjo commentedCommitted, thanks for the patch!