You are here

function number_field_formatter_info in Content Construction Kit (CCK) 6

Same name and namespace in other branches
  1. 5 number.module \number_field_formatter_info()
  2. 6.3 modules/number/number.module \number_field_formatter_info()
  3. 6.2 modules/number/number.module \number_field_formatter_info()

Implementation of hook_field_formatter_info().

File

modules/number/number.module, line 239
Defines numeric field types.

Code

function number_field_formatter_info() {
  return array(
    'default' => array(
      'label' => '9999',
      'multiple values' => CONTENT_HANDLE_CORE,
      'field types' => array(
        'number_integer',
        'number_decimal',
        'number_float',
      ),
    ),
    'us_0' => array(
      'label' => '9,999',
      'multiple values' => CONTENT_HANDLE_CORE,
      'field types' => array(
        'number_integer',
        'number_decimal',
        'number_float',
      ),
    ),
    'us_1' => array(
      'label' => '9,999.9',
      'multiple values' => CONTENT_HANDLE_CORE,
      'field types' => array(
        'number_decimal',
        'number_float',
      ),
    ),
    'us_2' => array(
      'label' => '9,999.99',
      'multiple values' => CONTENT_HANDLE_CORE,
      'field types' => array(
        'number_decimal',
        'number_float',
      ),
    ),
    'be_0' => array(
      'label' => '9.999',
      'multiple values' => CONTENT_HANDLE_CORE,
      'field types' => array(
        'number_integer',
        'number_decimal',
        'number_float',
      ),
    ),
    'be_1' => array(
      'label' => '9.999,9',
      'multiple values' => CONTENT_HANDLE_CORE,
      'field types' => array(
        'number_decimal',
        'number_float',
      ),
    ),
    'be_2' => array(
      'label' => '9.999,99',
      'multiple values' => CONTENT_HANDLE_CORE,
      'field types' => array(
        'number_decimal',
        'number_float',
      ),
    ),
    'fr_0' => array(
      'label' => '9 999',
      'multiple values' => CONTENT_HANDLE_CORE,
      'field types' => array(
        'number_integer',
        'number_decimal',
        'number_float',
      ),
    ),
    'fr_1' => array(
      'label' => '9 999, 9',
      'multiple values' => CONTENT_HANDLE_CORE,
      'field types' => array(
        'number_decimal',
        'number_float',
      ),
    ),
    'fr_2' => array(
      'label' => '9 999, 99',
      'multiple values' => CONTENT_HANDLE_CORE,
      'field types' => array(
        'number_decimal',
        'number_float',
      ),
    ),
    'unformatted' => array(
      'label' => t('unformatted'),
      'multiple values' => CONTENT_HANDLE_CORE,
      'field types' => array(
        'number_integer',
        'number_decimal',
        'number_float',
      ),
    ),
  );
}