![]() |
comment in .info file of Drupal - Printable Version +- 0Day Forums (https://0day.red) +-- Forum: Coding (https://0day.red/Forum-Coding) +--- Forum: CMS (https://0day.red/Forum-CMS) +---- Forum: Drupal (https://0day.red/Forum-Drupal) +---- Thread: comment in .info file of Drupal (/Thread-comment-in-info-file-of-Drupal) |
comment in .info file of Drupal - riata821025 - 07-26-2023 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. RE: comment in .info file of Drupal - silicles631986 - 07-26-2023 you can use the semicolon: ; This is a comment RE: comment in .info file of Drupal - willieyinhta - 07-26-2023 The character used as comment delimiter is reported in [Writing .info files (Drupal 6.x)][1]: > 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)][2]) 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. [1]: [To see links please register here] [2]:[To see links please register here] RE: comment in .info file of Drupal - uncorrespondent662225 - 07-26-2023 For Drupal 7 info files extension is **.info** > ; commented line Similarly, for Drupal 8 info files extension is **.info.yml** > # commented line |