function units_field_field_info in Units of Measurement 7.2
Implements hook_field_info().
File
- units_field/
units_field.module, line 11 - Provide field type for storing measured values.
Code
function units_field_field_info() {
return array(
'units_value' => array(
'label' => t('Measured value'),
'description' => t('Store measured quantities in this field and them seamlessly execute units conversion.'),
'settings' => array(
'dimension' => array(
'type' => 'measure',
'mathematical_expression' => NULL,
'measure' => NULL,
),
),
'instance_settings' => array(),
'default_widget' => 'units_value_expression',
'default_formatter' => 'units_value_expression',
),
);
}