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

guardiola86 created an issue. See original summary.

guardiola86’s picture

Priority: Major » Critical

Changing 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?

mpotter’s picture

Priority: Critical » Normal

Support requests should always be "Normal".