You are here

function textformatter_field_formatter_info in Text list formatter 7

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

Implements hook_field_formatter_info().

File

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

Code

function textformatter_field_formatter_info() {
  $textformatter_info = _textformatter_field_info();
  return array(
    'textformatter_list' => array(
      'label' => t("List"),
      'field types' => $textformatter_info['fields'],
      'settings' => array(
        'textformatter_type' => 'ul',
        'textformatter_class' => 'textformatter-list',
        'textformatter_comma_full_stop' => 0,
        'textformatter_comma_and' => 0,
        'textformatter_comma_tag' => 'div',
        'textformatter_term_plain' => 0,
        'textformatter_comma_override' => 0,
        'textformatter_separator_custom' => '',
        'textformatter_separator_custom_tag' => 'span',
        'textformatter_separator_custom_class' => 'textformatter-separator',
        'textformatter_contrib' => $textformatter_info['settings'],
      ),
    ),
  );
}