add user profiles fields into comment fields I'd like when a user comments, to display his information.

Let's assume I do have in my user profile 2 fields, Job title and Biography.

When a user comments, I would like to get those 2 fields and display them as comment fields.(same for existing comments)
It will then display the comment + job title + bio

What the best solution for that ?

I was thinking about a preprocess to load the $user but maybe there is some configuration which could do it instead.
In this example I added 2 fields in the comment section of my content type then I'm trying to get the user profile infos to the current fields.

function template_preprocess_comment(&amp;$vars) {
      if($vars['comment']-&gt;uid !== 0){
        $user = user_load($vars['comment']-&gt;uid);
        $vars['field_job_title'] = $user-&gt;field_job_title;
        $vars['field_bio'] = $user-&gt;field_bio;
      }
}


Final approach was:
For the existing one that what I came out with:

function hook_user_presave(&amp;$edit, $account, $category){
    //get all node we need
    $results = db_select('node', 'n')
                  -&gt;fields('n', array('nid'))
                  -&gt;condition('type', 'my_content_type', 'LIKE')
                  -&gt;execute();

    foreach ($results as $result) {
        $nids[] = $result-&gt;nid;
    }
    foreach ($nids as $key =&gt; $nid) {
        //get all comment ids
        $result = db_select('comment')
            -&gt;fields('comment', array('cid'))
            -&gt;condition('nid', $nid, '=')
            -&gt;condition('uid', $account-&gt;uid, '=')
            -&gt;execute();

        $cids = $result-&gt;fetchCol();
        $comments=comment_load_multiple($cids);
        foreach($comments as $comment) {
            //load comment
            // $user = user_load($comment-&gt;uid);
            if(isset($edit['field_job_title']) &amp;&amp; isset($edit['field_bio']) &amp;&amp; $account-&gt;uid !== 0){
                //change data of the comment
                $comment-&gt;field_job_title = $edit['field_job_title'];
                $comment-&gt;field_bio = $edit['field_bio'];
                //save it
                comment_save($comment);
            }
        }
    }
}

function hook_comment_presave($comment) {
    //if not user, otherwise it does it when you do the comment_save($comment) from the user_presave, then it won't work
    if(arg(0) !== 'user'){
        $user = user_load($comment-&gt;uid);
        if($user-&gt;uid != 0){
            $comment-&gt;field_job_title = isset($user-&gt;field_job_title) ? $user-&gt;field_job_title : NULL;
            $comment-&gt;field_bio = isset($user-&gt;field_bio) ? $user-&gt;field_bio : NULL;
        }
    }
}


and this one to hide the current fields when you comment:

function template_form_comment_form_alter(&amp;$form, &amp;$form_state) {
    $form['field_bio']['#access'] = FALSE;
    $form['field_job_title']['#access'] = FALSE;
}
Your solution is ok. But you could also


Add a field on the comment fields of your content type that uses a reference to the user
On hook_comment_presave fill out the user reference field with the uid of the logged in user
On manage display of your comment fields, just render the user field as a rendered entity
You could use a custom view mode on user that only shows the fields "job title" and "bio".