diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-12-13 12:42:28 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-12-13 12:42:28 +0000 |
commit | 601150c2627c017b29a1f240dc7398b36b7ca47f (patch) | |
tree | 2a1695f4f1074a44f7ed8de247ec16b0559bff97 /modules/field/modules/text/text.module | |
parent | 8b4406ef5d9d22f527fb124b335812dd9136532c (diff) | |
download | brdo-601150c2627c017b29a1f240dc7398b36b7ca47f.tar.gz brdo-601150c2627c017b29a1f240dc7398b36b7ca47f.tar.bz2 |
- Patch #658302 by yched: re-purpose hook_field_sanitize() into hook_field_prepare_view().
Diffstat (limited to 'modules/field/modules/text/text.module')
-rw-r--r-- | modules/field/modules/text/text.module | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/field/modules/text/text.module b/modules/field/modules/text/text.module index 6f6112c18..68a197005 100644 --- a/modules/field/modules/text/text.module +++ b/modules/field/modules/text/text.module @@ -199,13 +199,13 @@ function text_field_validate($obj_type, $object, $field, $instance, $langcode, $ * Where possible, generate the sanitized version of each field early so that * it is cached in the field cache. This avoids looking up from the filter cache * separately. - * @see text_field_sanitize(). + * @see text_field_formatter(). */ function text_field_load($obj_type, $objects, $field, $instances, $langcode, &$items) { foreach ($objects as $id => $object) { foreach ($items[$id] as $delta => $item) { - // Only process items with a cacheable format, the rest will be - // handled by formatters if needed. + // Only process items with a cacheable format, the rest will be handled + // by formatters if needed. if (empty($instances[$id]['settings']['text_processing']) || filter_format_allowcache($item['format'])) { $items[$id][$delta]['safe_value'] = isset($item['value']) ? _text_sanitize($instances[$id], $langcode, $item, 'value') : ''; if ($field['type'] == 'text_with_summary') { |