| 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 |
| 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); |