function theme_text_formatter_trimmed in Content Construction Kit (CCK) 6.3
Same name and namespace in other branches
- 6 modules/text/text.module \theme_text_formatter_trimmed()
- 6.2 modules/text/text.module \theme_text_formatter_trimmed()
Theme function for 'trimmed' text field formatter.
File
- modules/
text/ text.module, line 234 - 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);
}