How to extend the user registration in Drupal 7 I want to run a set of php code(not drupal code) after the user submits the registration form.


user enter details
submit the form drupal
writes form data to db
execute custom code
comes back to default registration tanakyou page of drupal


For this how will i extend the default user module of drupal without touching the core user module codes.

can i define a custom module and execute its resources
you can add any action you want after user registered by implementing hook_user_insert.