comment in .info file of Drupal
Asked Answered
F

3

10

how to put lines inside comment in

.info file type.

Does it differ if file used in Drupal? I found these files generally found in Drupal.

Forby answered 10/6, 2011 at 7:9 Comment(3)
I found it is #. Any other way?Forby
That link has nothing to do with Drupal's info files.Matherly
Update: Drupal 8 is slated to use YAML instead of the Drupal-specific .info file format. YAML uses # comments (en.wikipedia.org/wiki/YAML)Olav
M
11

you can use the semicolon:

; This is a comment
Matherly answered 10/6, 2011 at 8:5 Comment(0)
S
5

The character used as comment delimiter is reported in Writing .info files (Drupal 6.x):

info files may contain comments. The comment character is the semi-colon and denotes a comment at the beginning of a line. CVS Ids used to be placed at the head of info files using a semicolon, but now that Drupal.org has moved to git they are no longer included.

The equivalent book page for Drupal 7 (Writing .info files (Drupal 7.x)) reports the following sentence:

info files may contain comments. A semi-colon [;] placed at the beginning of a line makes that line a comment, and that line will not be parsed.

Splurge answered 10/6, 2011 at 23:39 Comment(0)
H
0

For Drupal 7 info files extension is .info

; commented line

Similarly, for Drupal 8 info files extension is .info.yml

# commented line

Hyper answered 5/7, 2019 at 3:40 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.