You are here

function textformatter_textformatter_field_info in Text list formatter 7

Same name and namespace in other branches
  1. 8.2 textformatter.module \textformatter_textformatter_field_info()

Implements hook_textformatter_field_info().

File

./textformatter.module, line 375
Provide a field formatter to render values as HTML or comma-separated lists.

Code

function textformatter_textformatter_field_info() {
  $info = array();
  $info['text'] = array(
    'fields' => array(
      'text',
      'text_long',
    ),
    'callback' => 'textformatter_text_field_create_list',
  );
  $info['number'] = array(
    'fields' => array(
      'number_integer',
      'number_decimal',
      'number_float',
    ),
    'callback' => 'textformatter_default_field_create_list',
  );
  $info['list'] = array(
    'fields' => array(
      'list_float',
      'list_integer',
      'list_text',
    ),
    'callback' => 'textformatter_list_field_create_list',
  );
  $info['taxonomy'] = array(
    'fields' => array(
      'taxonomy_term_reference',
    ),
    'callback' => 'textformatter_taxonomy_field_create_list',
  );
  return $info;
}