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'm using a function to retrieve the values a select list can have. I have something like this:
'allowed_values_function' => '_get_styles',
When I update a feature though, 'allowed_values' is written in the feature with the values that the field currently have. In my case this field load all the image styles so it must be dynamic. What would be the best approach for this?
Comments
Comment #2
guardiola86 CreditAttribution: guardiola86 commentedChanging status to critical. I removed that field from features and I'm creating it with a hook_update. But when I update the feature with drush that field is still being added in the feature. Is there any way to completely exclude that field from being added?
Comment #3
mpotter CreditAttribution: mpotter commentedSupport requests should always be "Normal".