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.
When viewing an inline image, if there is no Title or Description set then the 'alt' attribute is also blank.
Have made patch to add a check for $caption before resetting the node title.
Comment | File | Size | Author |
---|---|---|---|
img_assist.module.patch | 683 bytes | vivaelamor |
Comments
Comment #1
vivaelamor CreditAttribution: vivaelamor commentedTested bug and patch for 6.x-2.0-alpha4 and changed version, hoping to get review faster =)
Comment #2
locomo CreditAttribution: locomo commentedSame is true for the title attribute if the image is used as a link - title is blank if no title/description set.
I think its a good practice to set the title attribute so i modified img_assist.module to to include it by default using this patch as a lead
for each of the 3 link types (node, popup, url) i added a title to the attributes array, i.e.
sorry, not sure how to make a patch yet, but this is a quick fix if you desire this behavior
Comment #3
linksunten CreditAttribution: linksunten commentedWe can confirm that this important patch works - with a fuzz even for the newest dev version:
$ patch -p0 < img_assist.module_20.patch
patching file img_assist.module
Hunk #1 succeeded at 1473 with fuzz 2 (offset -251 lines).