开发者

comment in .info file of Drupal

how to put lines inside comment in

.info f开发者_StackOverflow社区ile type.

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


you can use the semicolon:

; This is a comment


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.


For Drupal 7 info files extension is .info

; commented line

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

# commented line

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜