Skip to content
Snippets Groups Projects
Commit 08dd2589 authored by Angie Byron's avatar Angie Byron
Browse files

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

parent 7e7b50a9
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment