1 views_handler_field.inc views_handler_field::render_trim_text($alter, $value)

Trim the field down to the specified length.

File

core/modules/views/handlers/views_handler_field.inc, line 1284
@todo.

Class

views_handler_field
Base field handler that has no options and renders an unformatted field.

Code

function render_trim_text($alter, $value) {
  if (!empty($alter['strip_tags'])) {
    // NOTE: It's possible that some external fields might override the
    // element type so if someone from, say, CCK runs into a bug here,
    // this may be why =)
    $this->definition['element type'] = 'span';
  }
  return views_trim_text($alter, $value);
}