Drupal Questions & Answers

Ask and answer Drupal related questions! No question too simple or complex!
Value bound's picture
Asked by on Wed 5th Dec 2012
want to generate a unique membership number for the registration user

Hi, i just want to generate a unique membership number for the registration user with the combination of the country field “iso2 value” and the user “uid” and the value of the role to the user assigned like if the role is “college” role value is “2” if universities the value is “3”. so when the user “1” registered with the role “college” then the membership number must be “country”=“India” “uid”=“3” “role”=“colleges” the membership number looks like “35632”. where “356” is the iso number of India, “3” is the uid, “2” is the value of role.

Commenting on this Drupal Question is closed.