function range_field_formatter_info in Range 6
Same name and namespace in other branches
- 7 range.module \range_field_formatter_info()
Implementation of hook_field_formatter_info().
File
- ./
range.module, line 277 - Defines numeric fields within a range of possible values and displays them colored accordingly..
Code
function range_field_formatter_info() {
return array(
'default' => array(
'label' => '9999',
'multiple values' => CONTENT_HANDLE_CORE,
'field types' => array(
'range_integer',
'range_decimal',
'range_float',
),
),
'us_0' => array(
'label' => '9,999',
'multiple values' => CONTENT_HANDLE_CORE,
'field types' => array(
'range_integer',
'range_decimal',
'range_float',
),
),
'us_1' => array(
'label' => '9,999.9',
'multiple values' => CONTENT_HANDLE_CORE,
'field types' => array(
'range_decimal',
'range_float',
),
),
'us_2' => array(
'label' => '9,999.99',
'multiple values' => CONTENT_HANDLE_CORE,
'field types' => array(
'range_decimal',
'range_float',
),
),
'be_0' => array(
'label' => '9.999',
'multiple values' => CONTENT_HANDLE_CORE,
'field types' => array(
'range_integer',
'range_decimal',
'range_float',
),
),
'be_1' => array(
'label' => '9.999,9',
'multiple values' => CONTENT_HANDLE_CORE,
'field types' => array(
'range_decimal',
'range_float',
),
),
'be_2' => array(
'label' => '9.999,99',
'multiple values' => CONTENT_HANDLE_CORE,
'field types' => array(
'range_decimal',
'range_float',
),
),
'fr_0' => array(
'label' => '9 999',
'multiple values' => CONTENT_HANDLE_CORE,
'field types' => array(
'range_integer',
'range_decimal',
'range_float',
),
),
'fr_1' => array(
'label' => '9 999, 9',
'multiple values' => CONTENT_HANDLE_CORE,
'field types' => array(
'range_decimal',
'range_float',
),
),
'fr_2' => array(
'label' => '9 999, 99',
'multiple values' => CONTENT_HANDLE_CORE,
'field types' => array(
'range_decimal',
'range_float',
),
),
'unformatted' => array(
'label' => t('unformatted'),
'multiple values' => CONTENT_HANDLE_CORE,
'field types' => array(
'range_integer',
'range_decimal',
'range_float',
),
),
);
}