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.
Using 1.3 here and trying to add default classes to images being embedded. From one of the issues in 2.x I came across using: hook_media_token_to_markup_alter. But in 1.3 it doesn't seem to fire off. I can see the hook in media.api.php, is this not a feature until 2.x?
Comments
Comment #1
thebruce CreditAttribution: thebruce commentedThis was moved to media wysiwyg and the function is now:
hook_media_wysiwyg_token_to_markup_alter
Comment #2
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedClosing this issue as outdated. However, if you think this issue is still important, please let us know and we will gladly re-open it for review.
sincerely,
- the Drupal Media Team