D
D
Dmitry2016-02-19 12:08:24
Drupal
Dmitry, 2016-02-19 12:08:24

How to display the data of any user in the node by uid in Drupal 7 in Profile2?

There is a profile2 module with the help of which each user has a number of additional fields (full name, city, region, etc.).
Each node has an autocomplete field field_client , implemented using user_reference , in which a user is selected from the list. At the output, we have the uid of the selected user.
Task: how to pull up all the data from the profile (full name, city, etc.) using uid?
A simple user_load($uid) construct only pulls standard user data, soap, time zone, etc.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question