You are here

function units_field_field_formatter_info in Units of Measurement 7.2

Implements hook_field_formatter_info().

File

units_field/units_field.module, line 107
Provide field type for storing measured values.

Code

function units_field_field_formatter_info() {
  return array(
    'units_value_expression' => array(
      'label' => t('Mathematical expression'),
      'description' => t('Format value as mathematical expression'),
      'field types' => array(
        'units_value',
      ),
      'settings' => array(
        'expression_postfix' => NULL,
      ),
    ),
  );
}