Add hook after registration form submit I'm trying to club Drupal &amp; Magento together. So I want to make the registration seamless. If any user register in Drupal they want to register in Magento automatically using a custom module in Drupal. I have scripts to register in Magento by sending data to Magento script file.

I want to know how to make a AJAX call to that script file, using a custom Drupal module. I'm using Drupal 7 version.
You can use hook_user_insert, in which you can easily execute CURL, in hook_user_insert you will have all your data regarding the user.