You are here

function units_field_field_widget_info in Units of Measurement 7.2

Implements hook_field_widget_info().

File

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

Code

function units_field_field_widget_info() {
  return array(
    'units_value_expression' => array(
      'label' => t('Mathematical expression'),
      'description' => t('Specify value through mathematical formula'),
      'field types' => array(
        'units_value',
      ),
      'settings' => array(
        'expression_postfix' => NULL,
      ),
    ),
  );
}