Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
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
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
}
Comments
Comment #1
fcastle commentedanyone knows how can i display the UID of the user just created ??
Comment #2
Feet commentedMy (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
Comment #3
gorgo commentedI 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
Comment #4
ngstigator commentedYou could try a hook_form_alter, something like: