I'm trying to club Drupal & 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.

  • I also want to pass registration form data in the ajax call. Commented Jun 8, 2016 at 7:02
  • You can try php.net/manual/en/book.curl.php
    – Rupesh
    Commented Jun 8, 2016 at 7:09
  • This is php curl by default to get response from the page. My Question is how to add a hook after registration form submit in drupal framework. Commented Jun 8, 2016 at 7:11

2 Answers 2


For achieving this goal you have to Implement drupal hook_user_insert and Use php cURL


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.