Create a Database Table for Custom Module in Drupal 7

By junaid on Tue, 03/31/2015 - 14:01

Creating a database table for Drupal module is straight forward and one of the easiest task in Drupal. To create a table, what all you need is to create a .install file inside module directory and implement hook_schema(). Inside hook_schema() implementation, specify the structure of table in array form.

KB Article