I need to assign one custom field value from user profile. One field is nickname (this field is filled by user) and I need to generate another field with function.
The function takes nickname and using external library takes this nicknames ID. I need to run one function and save this ID everytime new profile is saved or existing updated.
I can not find good way to do it.
I tried with Rules module setting event after account updated with action evulate value with php, but there i can not load my api library to do the function.
Any information will help me