Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I am the maintainer of the Image field caption module and a request to support the caption was requested. I tried to look how I can provide this. Token was an option and only because you are sending the entity item as a file object (which is a nice hack) but I don't want to just rely on that.
Trying a few approaches I thought of giving other modules the option to alter the captions and I come up with this idea which, although I am not sure it is the best for my case or use it at all, it doesn't add complexity to your module and it adds flexibility for other modules.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2014853-1-caption-alterers.patch | 1.75 KB | hanoii |
Comments
Comment #1
hanoiiAttached is a patch that adds a couple of drupal_alter() hooks as well as a hook_hook_info() implementation that allows modules to add hooks to a MODULE.colorbox.inc besides the usual module file.
Comment #1.0
hanoiiUpdated issue summary.
Comment #2
Neslee Canil PintoPatch Failed to apply.
Comment #3
Neslee Canil Pinto