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.
The attached patch against DRUPAL-6--3 adds a list of currencies, as long as the Currency API module is installed and activated.
Originally from roball's patch at http://drupal.org/node/406486#comment-2823478
Comment | File | Size | Author |
---|---|---|---|
webform-6.x-3.x_select-currencies.406486.patch | 1.1 KB | quicksketch | |
Comments
Comment #1
roball CreditAttribution: roball commentedYes, better to discuss each new select list in a separate issue.
Only depends on the "Currency API" module (part of the Currency Exchange module project). However, Webform will *not* be dependent on that module, of course.
I am using that patch successfully with Webform's latest 6.x-3.0 dev. It (as of Currency 6.x-1.2) provides the following select list:
Comment #2
roball CreditAttribution: roball commentedI have read in another thread that you are planning to release beta 5 this weekend. Do you think this patch has a chance to get in?
Comment #3
quicksketchRight now I'm nervous about a select list that has 500+ items, it could cause a significant slow-down when used with Options Element. I want to test it out first and I don't think this isn't a very high priority overall, so it might have to wait until after beta 5.
Comment #4
roball CreditAttribution: roball commentedI think you thought about another request - #765616: Time zone list add to pre-built lists where the suggested list contains of 564 options.
The list here has only 161 options. I am using it with the Options Element module - works fine for me.
Comment #5
quicksketchOh you're right, I was thinking about the Time zone list. I'm still not 100% on this option. It looks to me like the list provided by Currency API is intended to be used for administrative purposes rather than something a front-end user would encounter. Then again, I don't think there's a large amount of overlap between Webform users and Currency users. I'd like to populate the options for pre-defined select lists with meaningful options for the majority of users, I'm not sure that a list of all the world's currencies really fits that.
Comment #6
quicksketchThis won't be added as an option to Webform directly. Note that it could just as easily be added to Currency module (if they're interested in it), by implementing hook_webform_select_options_info() in currency.module.