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.
hi all.
i've been looking a lot for this, web an ds api, but i was not able to find a way.
is it possible to alter the format limit setting of a multiple-values field?
also, i'd like to alter it at runtime, limiting the number of items per role and, since this is a pretty project-specific thing, a little alter would be great.
i know there are other ways to achieve this, but they all are worse.
is this possible somehow or formatters get cached in such a way that it's just not possibile?
thanks a lot.
Comments
Comment #1
aspilicious CreditAttribution: aspilicious commentedNot easily possible and not a ds feature
Comment #2
sgurlt CreditAttribution: sgurlt commentedNot so complicated at all, just implement the following in your custom module and make sure that it gets executed after ds:
Comment #3
aspilicious CreditAttribution: aspilicious commentedWoow, thank you sg88.
Makes 100% sense :)