You are here

function fraction_field_formatter_info in Fraction 7

Implements of hook_field_info().

File

./fraction.field.inc, line 312
Fraction Field API functions

Code

function fraction_field_formatter_info() {
  return array(
    'fraction_default' => array(
      'label' => t('Fraction'),
      'field types' => array(
        'fraction',
      ),
      'settings' => array(
        'separator' => '/',
        'prefix_suffix' => TRUE,
      ),
    ),
    'fraction_decimal' => array(
      'label' => t('Decimal'),
      'field types' => array(
        'fraction',
      ),
      'settings' => array(
        'precision' => FRACTION_PRECISION_DEFAULT,
        'auto_precision' => TRUE,
        'prefix_suffix' => TRUE,
      ),
    ),
    'fraction_percentage' => array(
      'label' => t('Percentage'),
      'field types' => array(
        'fraction',
      ),
      'settings' => array(
        'precision' => FRACTION_PRECISION_DEFAULT,
        'auto_precision' => TRUE,
        'prefix_suffix' => TRUE,
      ),
    ),
  );
}