instead of the user name, how can i display after the creation process th UID of the user just created??

thanks

Comments

fcastle’s picture

Category: support » feature

anyone knows how can i display the UID of the user just created ??

Feet’s picture

My (uninformed) guess would be to do a function override in template.php.

I'd look into function ucreate_user_create in ucreate.module

Good luck

gorgo’s picture

I need help with that too...
I'm trying to get the created uid (as a token) to create a rule after form submits.
Can't figure out how to do it..
Hopefully someone here can help.
Thanks

ngstigator’s picture

You could try a hook_form_alter, something like:

function mymodule_form_alter(&$form, $form_state, $form_id) {
  switch($form_id) {
    case 'ucreate_user_form':
    ...
    $form['#submit'] = array('mymodule_ucreate_submit');
    break;
  }
}

function mymodule_ucreate_submit($form, &$form_state) {
  $account = ucreate_user_create($form_state['values']);
  // now you can do something with the $account->uid
}