You can add a custom submit handler to forms like this.
function hook_form_user_register_alter(&$form, &$form_state) { // ... $form['#submit'][] = 'yourModule_user_register_submit'; } function yourModule_user_register_submit($form, &$form_state) { // do what you want to do after registration }
I would also recommend using Drupal Triggers and Actions to achieve this. AFAIK an error occurred with one of the triggers that fire after user registration. I don't know if this is fixed.
source share