function money_get_display_modes in Money field 7
Same name and namespace in other branches
- 6 money.module \money_get_display_modes()
Obtain display modes for money fields.
1 call to money_get_display_modes()
- money_field_widget_settings_form in ./
money.module - Implements hook_field_widget_settings_form().
File
- ./
money.module, line 485 - This module defines the Money field.
Code
function money_get_display_modes() {
return array(
'as' => t('Localized format of amount with currency symbol'),
's|a' => t('Symbol + Amount'),
's|+|a' => t('Symbol + Space + Amount'),
'a|s' => t('Amount + Symbol'),
'a|+|s' => t('Amount + Space + Symbol'),
's|a|+|c' => t('Symbol + Amount + Space + Currency Code'),
's|+|a|+|c' => t('Symbol + Space + Amount + Space + Currency Code'),
'a|+|c' => t('Amount + Space + Currency Code'),
'c|+|a' => t('Currency Code + Space + Amount'),
'c|+|as' => t('Currency Code + Space + Localized format of amount with currency symbol'),
'c|+|a|s' => t('Currency Code + Space + Amount + Symbol'),
'c|+|a|+|s' => t('Currency Code + Space + Amount + Space + Symbol'),
);
}