How to create a Drupal Module



8. How to create a Drupal module?

(i) Drupal module .info file

 

The .info module file adds a description to your module and is used for display purpose and lets the system identify a module. It is important for the .info file and the module name to have an identical name.

 

(ii) Drupal .module file

.module file lets Drupal name the main PHP file in any module. The .module file also stores the code of your module.and describes its functionality.

 

(iii) Drupal module .install file

.install file is a PHP file used to enable a module for the first time and helps in the creation of database tables and fields. This file can also include update instructions such as Drupal updates. These