开发者

How to print profile id associated with the user in Drupal?

开发者 https://www.devze.com 2023-03-11 16:55 出处:网络
I need to print profile id (pid) of the logged in user. User id and profile id is a different number, but they are corr开发者_运维知识库eltaed in the profile table in database. Any idea how can i do i

I need to print profile id (pid) of the logged in user. User id and profile id is a different number, but they are corr开发者_运维知识库eltaed in the profile table in database. Any idea how can i do it?


One way is to use profile2_load_by_user($account, $type_name = NULL). Worst-case scenario, you can always db_query from the database.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号