diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-10 00:41:28 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-10 00:41:28 +0000 |
commit | 08dd25895ec9dde34f319113e44e48225ffdcfca (patch) | |
tree | f02dba941b923438e436ec33a04917c18553a304 | |
parent | 7e7b50a9e8b303183a4bcabd0f124c4408da08ad (diff) | |
download | brdo-08dd25895ec9dde34f319113e44e48225ffdcfca.tar.gz brdo-08dd25895ec9dde34f319113e44e48225ffdcfca.tar.bz2 |
#560608 by pounard, plach, and yched: Fixed missing calls to field_attach_preprocess().
-rw-r--r-- | modules/comment/comment.module | 4 | ||||
-rw-r--r-- | modules/user/user.pages.inc | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 2c093fc47..b8e9a2a64 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 949a9fcef..33fe8a48a 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); } /** |