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 overriding one of the formatting theme functions, such as theme_link_formatter_link_default(), there is no way of knowing the delta of the current item being rendered.
hook_field_formatter_view() has the value, but it doesn't pass it on to the theme functions.
Comments