Closed (fixed)
Project:
Real Name
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Jul 2014 at 15:23 UTC
Updated:
28 Jun 2016 at 20:15 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
hass commentedThere is a duplicate in profile module queue.
Comment #2
nancydruIMHO, this belongs in the RealName module, not in Profile2. Just like we implement hook_user_update(), we should implement this hook as well.
Comment #3
nancydruHere it is as a patch.
Comment #4
nancydruComment #6
donquixote commentedI had this problem on user registration, with a registration form that also creates the profile.
The realname token is using a property defined in a custom module.
I needed to implement hook_user_profile2_insert(), and within this hook implementation, call drupal_static_reset('profile2_load_by_user'), before calling realname_update(). Did all this in a custom module, now it works.
Comment #7
hass commentedPlease share your patch with a test in the case #1044130: Real name not computed when profile field is shown on registration page and we can get this fixed.
Comment #8
hass commented