Drupal 7 Module Development Part 5 – Database tables – Daily Dose of Drupal Episode 20

In this example we create a new Drupal 7 module with the purpose of creating a database table inside our Drupal 7 module. We look at hook_schema and the Drupal Schema API to create a new database table.

In this episode you will learn:

– How to create a Drupal 7 module with an .install file
– What hook_install, hook_uninstall, and other various installation hooks do inside your .install file
– How to implement hook_schema in your Drupal 7 module
– How to use the Schema API for create Drupal database tables

Post Author: hatefull