You are here

function theme_text_formatter_trimmed in Content Construction Kit (CCK) 6

Same name and namespace in other branches
  1. 6.3 modules/text/text.module \theme_text_formatter_trimmed()
  2. 6.2 modules/text/text.module \theme_text_formatter_trimmed()

Theme function for 'trimmed' text field formatter.

File

modules/text/text.module, line 227
Defines simple text field types.

Code

function theme_text_formatter_trimmed($element) {
  $field = content_fields($element['#field_name'], $element['#type_name']);
  return ($allowed = _text_allowed_values($element)) ? $allowed : node_teaser($element['#item']['safe'], $field['text_processing'] ? $element['#item']['format'] : NULL);
}