From 08dd25895ec9dde34f319113e44e48225ffdcfca Mon Sep 17 00:00:00 2001
From: Angie Byron <webchick@24967.no-reply.drupal.org>
Date: Sun, 10 Jan 2010 00:41:28 +0000
Subject: [PATCH] #560608 by pounard, plach, and yched: Fixed missing calls to
 field_attach_preprocess().

---
 modules/comment/comment.module | 4 ++++
 modules/user/user.pages.inc    | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 2c093fc47fec..b8e9a2a6483f 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -2120,6 +2120,10 @@ function template_preprocess_comment(&$variables) {
   $variables['signature'] = $comment->signature;
   $variables['title']     = l($comment->subject, 'comment/' . $comment->cid, array('fragment' => "comment-$comment->cid"));
   $variables['permalink'] = l('#', 'comment/' . $comment->cid, array('fragment' => "comment-$comment->cid"));
+
+  // Preprocess fields.
+  field_attach_preprocess('comment', $comment, $variables['elements'], $variables);
+
   $variables['template_files'][] = 'comment-' . $variables['node']->type;
 
   // Helpful $content variable for templates.
diff --git a/modules/user/user.pages.inc b/modules/user/user.pages.inc
index 949a9fcef603..33fe8a48a673 100644
--- a/modules/user/user.pages.inc
+++ b/modules/user/user.pages.inc
@@ -169,10 +169,14 @@ function user_logout() {
  */
 function template_preprocess_user_profile(&$variables) {
   $account = $variables['elements']['#account'];
+
   // Helpful $user_profile variable for templates.
   foreach (element_children($variables['elements']) as $key) {
     $variables['user_profile'][$key] = $variables['elements'][$key];
   }
+
+  // Preprocess fields.
+  field_attach_preprocess('user', $account, $variables['elements'], $variables);
 }
 
 /**
-- 
GitLab