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.

CommentFileSizeAuthor
#1 2086403-image-attributes.patch451 bytesrustyy
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rustyy’s picture

FileSize
451 bytes

I've generated a patch, providing the attributes and this should work with theme_colorbox_imagefield() that uses theme_image/theme_image_style.

kaidjohnson’s picture

Issue summary: View changes
Status: Active » Reviewed & tested by the community

This patch does the job perfectly for us. +1 RTBC

kaidjohnson’s picture

Status: Reviewed & tested by the community » Needs review

Should probably run a test first... No tests to run...

kaidjohnson’s picture

Status: Needs review » Reviewed & tested by the community

Back to RTBC.

frjo’s picture

Status: Reviewed & tested by the community » Fixed

Committed, thanks for the patch!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.