You are here

function mvf_field_formatter_info in Measured Value Field 7

Same name and namespace in other branches
  1. 6 mvf.module \mvf_field_formatter_info()

Implements hook_field_formatter_info().

File

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

Code

function mvf_field_formatter_info() {
  $field_types = mvf_field_types();
  $settings = array(
    'unit' => array(),
    'value' => array(),
    'mvf' => array(
      'unit_suggesters_settings' => array(),
    ),
  );
  return array(
    'mvf_formatter_default' => array(
      'label' => t('Default'),
      'description' => t('Default formatter for unit measured field. Allows you to choose formatters independently for value and unit measure sub fields.'),
      'field types' => $field_types,
      'settings' => $settings,
    ),
    'mvf_formatter_symbol' => array(
      'label' => t('Configurable digits, units as symbol'),
      'description' => t('Formatter for unit measured field. Allows you to choose formatter for the numerical part from available numerical formatters, while rendering output unit as a symbol.'),
      'field types' => $field_types,
      'settings' => $settings,
    ),
  );
}