You are here

function mvf_data_property_info in Measured Value Field 7

Defines info for the properties of the MVF field data structure.

1 call to mvf_data_property_info()
mvf_property_info_callback in ./mvf.module
Callback to alter the property info of mvf field.

File

./mvf.module, line 164
Define a field type of measured value.

Code

function mvf_data_property_info() {
  return array(
    'value' => array(
      'type' => 'decimal',
      'label' => t('Value'),
      'schema field' => mvf_subfield_to_column('value'),
      'setter callback' => 'entity_property_verbatim_set',
    ),
    'unit' => array(
      'type' => 'units_unit',
      'label' => t('Unit'),
      'schema field' => mvf_subfield_to_column('unit'),
      'setter callback' => 'entity_property_verbatim_set',
    ),
  );
}