A line should be added to .info files for themes explaining how to properly package your theme for distribution by including the $Id marker.

Comments

todd nienkerk’s picture

Title: ".info files for themes" needs to clarify use of "; $Id" » Typo: Apostrophe used to indicate plural on "Adding your theme to Drupal.org"
Category: task » bug

*** Accidentally posted a new issue as a comment to this one. Sorry -- will fix. ***

todd nienkerk’s picture

Fixing the mess I made. Apologies.

todd nienkerk’s picture

Title: Typo: Apostrophe used to indicate plural on "Adding your theme to Drupal.org" » ".info files for themes" needs to clarify use of "; $Id"
Category: bug » task

Perhaps an explanation of $Id is also warranted on the Adding your theme to Drupal.org page.

dvessel’s picture

This would be nice to add to the coding standards then linking to them from the "adding your theme" page. Since $id can be used across all files, it shouldn't just note this for .info files but make a note on how it must be commented out for each type.

dvessel’s picture

Title: ".info files for themes" needs to clarify use of "; $Id" » clarify use of "$Id" in coding standards

Are you going to take care of this? If not, un-assign yourself.

todd nienkerk’s picture

Assigned: todd nienkerk » Unassigned

@dvessel: Unassigning myself now.

webchick’s picture

Agreed with dvessel, we should document this once, refer to it from elsewhere.

But the coding standards does have a "Header Comment Blocks" section, which states:
"
All source code files in the core Drupal distribution should contain the following comment block as the header:

<?php
// $Id$

This tag will be expanded by the CVS to contain useful information

<?php
// $Id: CODING_STANDARDS.html,v 1.14 2008/02/19 03:36:41 ax Exp $
"

What about this is unclear and needs to be worded better? Or is it just that we need a pointer here from the theme docs?

todd nienkerk’s picture

@webchick: Sorry, I should have been more clear about the scope of my request.

(1) I think there should be a single page that explains the use of $Id in every instance where it could appear (.module, .info, .css, etc. files).

(2) The example you cite above is helpful, but I think it's a bit vague when it qualifies the use of $Id in "core Drupal distribution." It's not immediately clear to the contributor if (a) that statement applies to them (their module isn't core) and (b) where/how they place $Id in .module, .info, .css, and other files. (dvessel touches on this above.)

webchick’s picture

Ok, then. Probably the best place to add this is as a child-page to the coding standards page. That would be consistent with other child pages that elaborate on things in the coding standards.

add1sun’s picture

Component: Customization and Theming Guide » Correction/Clarification
Status: Active » Fixed

This is clarified in http://drupal.org/node/546 and I added a link to the "Adding your theme" page. The entire section needs reorg'd/consolidated and that is being addressed in another issue: #30034: Codings standards cleanup so this is fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.