How to store a list of bundles in a select field (programmatically)?
I've found that there is an "allowed values function" setting for list fields. Perfect! :)

http://www.phase2technology.com/blog/setting-the-allowed-values-function-property-on-text-fields/