You are here

function number_field_info in Content Construction Kit (CCK) 6.2

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

Implementation of hook_field_info().

File

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

Code

function number_field_info() {
  return array(
    'number_integer' => array(
      'label' => t('Integer'),
      'description' => t('Store a number in the database as an integer.'),
    ),
    'number_decimal' => array(
      'label' => t('Decimal'),
      'description' => t('Store a number in the database in a fixed decimal format.'),
    ),
    'number_float' => array(
      'label' => t('Float'),
      'description' => t('Store a number in the database in a floating point format.'),
    ),
  );
}