You are here

function field_hidden_field_formatter_info in Field Hidden 7

Info about the formatting options in the Manage Display section.

Implements hook_field_formatter_info().

Return value

array

File

./field_hidden.module, line 599
Drupal Field Hidden module

Code

function field_hidden_field_formatter_info() {
  return array(
    'field_hidden_text_plain' => array(
      'label' => t('Display, as plain text'),
      'field types' => array(
        'field_hidden_text',
        'field_hidden_text_long',
      ),
    ),
    'field_hidden_text_plain_escaped' => array(
      'label' => t('Display, as htmlspecialchars escaped plain text'),
      'field types' => array(
        'field_hidden_text',
        'field_hidden_text_long',
      ),
    ),
    'field_hidden_integer' => array(
      'label' => t('Display, formatted'),
      'field types' => array(
        'field_hidden_integer',
      ),
      'settings' => array(
        'thousand_separator' => ' ',
        'prefix_suffix' => TRUE,
      ),
    ),
    'field_hidden_decimal' => array(
      // also used by field_hidden_float
      'label' => t('Display, formatted'),
      'field types' => array(
        'field_hidden_decimal',
        'field_hidden_float',
      ),
      'settings' => array(
        'thousand_separator' => ' ',
        'decimal_separator' => '.',
        'scale' => 2,
        'prefix_suffix' => TRUE,
      ),
    ),
    'field_hidden_numeric_unformatted' => array(
      'label' => t('Display, unformatted'),
      'field types' => array(
        'field_hidden_integer',
        'field_hidden_decimal',
        'field_hidden_float',
      ),
    ),
  );
}