function number_field_formatter_info in Content Construction Kit (CCK) 5
Same name and namespace in other branches
- 6.3 modules/number/number.module \number_field_formatter_info()
- 6 modules/number/number.module \number_field_formatter_info()
- 6.2 modules/number/number.module \number_field_formatter_info()
Implementation of hook_field_formatter_info().
1 call to number_field_formatter_info()
- number_field_settings in ./
number.module - Implementation of hook_field_settings().
File
- ./
number.module, line 166 - Defines numeric field types.
Code
function number_field_formatter_info() {
return array(
'default' => array(
'label' => '9999',
'field types' => array(
'number_integer',
'number_decimal',
),
),
'us_0' => array(
'label' => '9,999',
'field types' => array(
'number_integer',
'number_decimal',
),
),
'us_1' => array(
'label' => '9,999.9',
'field types' => array(
'number_decimal',
),
),
'us_2' => array(
'label' => '9,999.99',
'field types' => array(
'number_decimal',
),
),
'be_0' => array(
'label' => '9.999',
'field types' => array(
'number_integer',
'number_decimal',
),
),
'be_1' => array(
'label' => '9.999,9',
'field types' => array(
'number_decimal',
),
),
'be_2' => array(
'label' => '9.999,99',
'field types' => array(
'number_decimal',
),
),
'fr_0' => array(
'label' => '9 999',
'field types' => array(
'number_integer',
'number_decimal',
),
),
'fr_1' => array(
'label' => '9 999, 9',
'field types' => array(
'number_decimal',
),
),
'fr_2' => array(
'label' => '9 999, 99',
'field types' => array(
'number_decimal',
),
),
'unformatted' => array(
'label' => t('unformatted'),
'field types' => array(
'number_integer',
'number_decimal',
),
),
);
}