I've altered users table and added two new fields directly using MySQL workbench
- first_name
- last_name
If we add new fields by config > people > site information > manage fields, it does not allow adding drop-down list. So, directly added using MySQL workbench.
Now I was able to alter user_register_form and added above two fields with validation. At the time of creating new user, the values of first_name and last_name gets stored in users table.
Now, how to get those two fields when user logs in?
i've used below code to print user object
global $user;
$user_full = user_load($user->uid);
print_r($user_full);
Any help would be appreciated, thanks !!
"Display on user registration form."
option.