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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.