Use it for questions about the file containing information about modules and themes.

Files with extension .info (Drupal 7 and earlier versions) or .info.yml (Drupal 8 and later versions) contain various information about a module or a theme. This includes the following information:

  • The name of the module (Drupal 5 or higher)
  • The type of the extension (Drupal 8 or higher)
  • The description of the extension (Drupal 5 or higher)
  • The modules required from the extension being installed (Drupal 5 or higher)
  • The package name (Drupal 5 or higher)
  • The required Drupal version (Drupal 6 and higher)
  • The required PHP version (Drupal 6 or higher)
  • The list of the used CSS files, which would be automatically loaded (Drupal 7 or higher)
  • The list of the used JavaScript used by the module, which would be automatically loaded (Drupal 7 or higher)
  • The list of files that implement a class or an interface (Drupal 7 or higher)
  • Whenever the extension should be shown in the pages listing all the extensions found from Drupal, or not (Drupal 6.20 or higher)

Drupal 8 uses a different format for the .info files. While previous versions used a standard .ini file format, Drupal 8 uses the YAML format, similarly to what done from Symfony.

References