summaryrefslogtreecommitdiff
path: root/modules/field/modules/text/text.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-12-13 12:42:28 +0000
committerDries Buytaert <dries@buytaert.net>2009-12-13 12:42:28 +0000
commit601150c2627c017b29a1f240dc7398b36b7ca47f (patch)
tree2a1695f4f1074a44f7ed8de247ec16b0559bff97 /modules/field/modules/text/text.module
parent8b4406ef5d9d22f527fb124b335812dd9136532c (diff)
downloadbrdo-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.module6
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') {