Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I've noticed several directives in the .info file that are not necessary. The files[] directive should only be used for files containing Classes or Interfaces.
Comment | File | Size | Author |
---|---|---|---|
#1 | bad_judgement-useless_info_files-2155385-1.patch | 383 bytes | JulienD |
Comments
Comment #1
JulienD CreditAttribution: JulienD commentedHere is a patch tested on the 7.x-1.x version of the module
Comment #2
jacob.embree CreditAttribution: jacob.embree commentedQuite right.
Comment #3
legolasboI'm tempted to close this as "works as designed", because this is actually a really handy feature. How else are you to know which files are part of the module and which files you placed in the module folder yourself?
Comment #4
JohnAlbinComment #6
JohnAlbinThanks for all of your hard work! I know it sometimes takes a while to get things committed to
Drupal coreBad Judgement, but it pays off in the long run, though I'm not sure how.I'd especially like to point out JulienD's work who I did not credit in any commits. Oops.
Comment #9
legolasboI know @JohnAlbin purposely forgot to commit to the 9.x branch, but I think it is imperative to open a 5.x branch to commit this patch to as well.
Comment #10
Anonymous (not verified) CreditAttribution: Anonymous commentedSo I get a commit credit for what exactly?
Comment #11
legolasbo@Ryan Weal
For being awesome ofcourse!
Comment #12
Anonymous (not verified) CreditAttribution: Anonymous commentedWoohooo Internet points!!1!