
If you are a Drupal developer, you would often encounter a situation where your Drupal module needs to create a custom table automatically when enabled. If you are new to Drupal, Checkout How to create your own Drupal module to know how to do it. Drupal provides you this option using hook_schema. Read on to know how to use hook_schema in your Drupal module .