You are here

function node_field_text_long_formatter in Node Field 7.2

Formatter for long text field.

1 string reference to 'node_field_text_long_formatter'
node_field_types_info in includes/node_field.field.inc
Node field types info.

File

includes/node_field.field.inc, line 219
Field types, settings, widget and formatters.

Code

function node_field_text_long_formatter($node_field) {
  if (isset($node_field['value'])) {
    if (!empty($node_field['settings']['text_format']) && !empty($node_field['settings']['use_text_format'])) {
      return check_markup($node_field['value'], $node_field['settings']['text_format']);
    }
    return check_plain($node_field['value']);
  }
}