This repository is solely for showcasing folder structure and sample code for the article https://medium.com/@indrarajw/guide-custom-integration-of-google-recaptcha-v2-with-drupal-7.
All other Drupal 7 system files and folders have been removed from this repository for simplicity.
To follow along with the guide:
- Create a new page on your Drupal 7 site.
- Copy and paste the contents of the "form.php" file into the newly created page.
- Move "my_module.module" and "my_module.info" to my_website/sites/all/modules/my_module folder.
- Enable the module from admin panel.
- Additionally, create a page with the URL "form/submit-form".
- Copy and paste the contents of the "submit.php" file into the "submit-form" page.