O'Reilly logo

Drupal 7 Social Networking by Michael Peacock

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building our module

Modules are built up of a number of different files:

  • Installation files: These files contain code which is executed when a module is installed and uninstalled
  • Info files: These files contain basic information about the module, including the name and Drupal core they are compatible with
  • Module files: These files contain the logic behind the module
  • Optional templates: These files are used to override the layout and design of the pages (suggestions)

For each module we want to create we need to create some, if not all of these files. Detailed documentation for them is available on the Drupal website:

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required