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

joachim’s picture

The 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.

joachim’s picture

In 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.