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 someone uninstalls this module the callbacks might no longer be available, so we should save the allowed values into the field instance's allowed values setting.
Comments
Comment #1
joachim CreditAttribution: joachim commentedThe alternative would be to change the field settings on uninstall as this patch to taxonomy module does: #1281732: Fatal error when taxonomy_options_list() tries to call an undefined callback function.
Comment #2
joachim CreditAttribution: joachim commentedIn fact, that might be preferred, as one good reason for using this module is having several different option fields which take their allowed values from just one definition in code.