You are here

function name_field_formatter_info in Name Field 7

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

Implements hook_field_formatter_info().

File

./name.module, line 1196
Defines an API for displaying and inputing names.

Code

function name_field_formatter_info() {
  $formatters = array();
  $formatters['name_formatter'] = array(
    'label' => t('Default'),
    'field types' => array(
      'name',
    ),
    'settings' => array(
      'markup' => 0,
      // default, plain, or raw.
      'output' => 'default',
      'format' => 'default',
      'multiple' => 'default',
      // These define how the multiple list option is configured.
      'multiple_delimiter' => ', ',
      // Text or symbol.
      'multiple_and' => 'text',
      // contextual, always, never.
      'multiple_delimiter_precedes_last' => 'never',
      'multiple_el_al_min' => 3,
      'multiple_el_al_first' => 1,
    ),
  );
  return $formatters;
}