Closed (won't fix)
Project:
Money field
Version:
6.x-1.2
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Aug 2009 at 15:05 UTC
Updated:
8 Sep 2009 at 02:39 UTC
Is it at all feasible to limit the currencies listed in the currency conversion dialog pop-up menu. It would be nice to have a ui to limit the fetch-able currencies for conversion as well as the money field itself.
Currently I find the menu far too long, plus most of the currencies are unlikely ever to be used on the site I'm developing.
Comments
Comment #1
markus_petrux commentedThe problem I see here is that CCK Field formatters do not have an UI where you can customize things. So we have to find an alternative approach. For example, we could:
a) Introduce a drupal_alter() that allows you to change the currency list used for the conversion dialog.
b) Filter the currencies using the criteria defined in the settings for the money field itself.
The problem I see in b) is that you may wish to enable a set of currencies for the field, but allow users convert to another set of currencies, which is different.
So maybe we can add a) and you can create a custom module that implements
hook_money_conversion_dialog_currency_list_alter()where you can filter as you wish. Such a function would look like this:Comment #2
markus_petrux commentedThe patch to implement a) would look like this:
Comment #3
markus_petrux commentedWon't fix without further feedback because I don't know if proposed solution is enough, and I would prefer not adding stuff without a reason.