Saturday, May 9, 2015

How To Make A Drupal Module: Part 1

Creating a Drupal Module is easy! At the minimum, you only need two files; a .info file, which describes our module and a .module file, which is where most of our code goes.

First things first, you need to create a folder to place our two files in. Call it my_module and place it in sites/all/modules (I place mine in sites/all/modules/custom).

Pass JSON To Drupal Page

I worked on a complex javascript application that comprised of many checkboxes, textfields, dropdowns and multiple steps. The data needed to be stored in a database and since I didn't use Drupal's Ajax, I needed to pass the data asynchronously elsewhere for that to be handled.