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.
If you use # to comment out lines in a .info then the first line after (it was a dependencies[] for me) is ignored.
Comments
Comment #1
naxoc CreditAttribution: naxoc commentedAre hashes valid in info files in drupal? The docs for
drupal_parse_info_format()
says: "Comments should start with a semi-colon at the beginning of a line."Comment #2
dcrocks CreditAttribution: dcrocks commentedDid you have something like '#something = (blank to EOL)'? Once the parser detects an '=' sign it will scan multiple lines until it hits a non-blank, and then set everything until EOL equal to '#something'.