/[drupal]/drupal/modules/field/modules/text/text.module
ViewVC logotype

Diff of /drupal/modules/field/modules/text/text.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.45 by dries, Mon Dec 21 13:47:32 2009 UTC revision 1.46 by dries, Mon Feb 8 21:02:15 2010 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: text.module,v 1.44 2009/12/13 12:42:28 dries Exp $  // $Id: text.module,v 1.45 2009/12/21 13:47:32 dries Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 272  function text_field_formatter_view($obje Line 272  function text_field_formatter_view($obje
272      case 'text_trimmed':      case 'text_trimmed':
273        foreach ($items as $delta => $item) {        foreach ($items as $delta => $item) {
274          $output = _text_sanitize($instance, $langcode, $item, 'value');          $output = _text_sanitize($instance, $langcode, $item, 'value');
275          if ($display['type'] == 'text_trimemd') {          if ($display['type'] == 'text_trimmed') {
276            $output = text_summary($output, $instance['settings']['text_processing'] ? $item['format'] : NULL);            $output = text_summary($output, $instance['settings']['text_processing'] ? $item['format'] : NULL);
277          }          }
278          $element[$delta] = array('#markup' => $output);          $element[$delta] = array('#markup' => $output);

Legend:
Removed from v.1.45  
changed lines
  Added in v.1.46

  ViewVC Help
Powered by ViewVC 1.1.6