Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am exporting users from another platform and I want the user id in the drupal installation to be the same as the user id in the other platform. Is there anyway user create can be modified to put in the id I tell it to ?
Comments
Comment #1
marcingy CreditAttribution: marcingy commentedComment #2
dianacastillo CreditAttribution: dianacastillo commentedI need to modify the user_save function in user.module to read like this :
How can I do this outside of the core instead? thanks
Comment #3
marcingy CreditAttribution: marcingy commentedToo many browser windows :( Removed comment and set back status
Comment #4
marcingy CreditAttribution: marcingy commentedComment #5
dianacastillo CreditAttribution: dianacastillo commentedI made a module which works with services with xml-rpc and allows you to assign id you wish to user register via xml-rpc you must send the field uww_uid in the xml . I implemented hook_form_alter and hook_user_presave . I have attached it here https://drupal.org/node/1851154#comment-6796536
Comment #6
dianacastillo CreditAttribution: dianacastillo commented