Chapter 10. Deployment

If you create custom modules or themes, you'll need to provide enough information for yourself or others to deploy the module to the Drupal core. The installer uses two files, one required and one optional, to prepare the system for accepting your module.

The .info File

If your module is self-contained and does not make any changes to the system, you can use a simple .info file. (The file is pronounced"dot info.")

The .info file stores metadata about your module or theme. For a module, the .info file tells Drupal the following:

  • That the module exists and what it is called.

  • How to control the activation and deactivation of the module.

  • How to render the module's information on the Drupal administration pages.

  • How to deal with the ...

Get Pro Drupal 7 for Windows Developlers now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.