You are here

function money_field_info in Money field 7

Same name and namespace in other branches
  1. 5 money.module \money_field_info()
  2. 6 money.module \money_field_info()

Implements hook_field_info().

File

./money.module, line 23
This module defines the Money field.

Code

function money_field_info() {
  return array(
    'money' => array(
      'label' => t('Money'),
      'description' => t('This field stores and renders an amount with its currency.'),
      'settings' => array(
        'min' => '',
        'max' => '',
        'precision' => 10,
        'scale' => 2,
      ),
      'instance_settings' => array(
        'min' => '',
        'max' => '',
      ),
      'default_widget' => 'money_widget',
      'default_formatter' => 'money_default',
      'property_type' => 'money',
      'property_callbacks' => array(
        'money_field_property_info_callback',
      ),
    ),
  );
}