Commit 08dd2589 authored by webchick's avatar webchick
Browse files

#560608 by pounard, plach, and yched: Fixed missing calls to field_attach_preprocess().

parent 7e7b50a9
......@@ -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.
......
......@@ -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);
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment