As the documentation says:

Drupal now supports a dynamic-loading code registry. To support it, all modules must now declare any code files containing class or interface declarations in the .info file.

In files[] should be specified only files that contain a class or an interface.
No other files should be declared using files[].

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

vladbo’s picture

Title: Remove files without class from .info » Remove files without class from .info files[]
vladbo’s picture

Status: Active » Needs review
FileSize
607 bytes

Here is the patch.

ptmkenny’s picture

Status: Needs review » Reviewed & tested by the community

Thanks for this patch! I tested it on my site and it works as advertised.

  • oadaeh committed f546c5f on 7.x-2.x authored by vlaad.bo
    Issue #2147863 by vlaad.bo, ptmkenny: Remove files without class from ....
oadaeh’s picture

Status: Reviewed & tested by the community » Fixed

The patch was applied and committed to the 7.x-2.x branch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.