Index: webform.options.inc =================================================================== RCS file: /cvs/drupal/contributions/modules/webform/includes/webform.options.inc,v retrieving revision 1.1.2.2 diff -u -r1.1.2.2 webform.options.inc --- includes/webform.options.inc 29 Mar 2010 03:19:49 -0000 1.1.2.2 +++ includes/webform.options.inc 8 Apr 2010 20:57:16 -0000 @@ -28,6 +28,15 @@ ); } + if (function_exists('currency_api_get_list')) { + // from "currency_api.module" (http://drupal.org/project/currency) + $items['currencies'] = array( + 'title' => t('Currencies'), + 'options callback' => 'webform_options_currencies', + 'file' => 'includes/webform.options.inc', + ); + } + $items['united_states'] = array( 'title' => t('US states'), 'options callback' => 'webform_options_united_states', @@ -68,6 +77,13 @@ } /** + * Options list containing currency names. + */ +function webform_options_currencies() { + return currency_api_get_list(); +} + +/** * Options list containing United States states and territories. */ function webform_options_united_states() {