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.
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