Current documentation is a bit misleading. Patch attached.

CommentFileSizeAuthor
#8 drupal_parse_info_file_docs.patch1.41 KBsreynen
cssjs.patch715 bytessreynen
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mr.baileys’s picture

Status: Active » Needs work

Makes perfect sense. However, if we're editing this doxygen block anyway, we should make the list adhere to Doxygen and comments coding conventions: Lists, more specifically: "Each list item starts with the key, followed by a colon, followed by a space, followed by the key description. The key description starts with a capital letter and ends with a period."

edit: typo.

jhodgdon’s picture

Title: Change script example for drupal_parse_info_file() from .css to .js » Change script example for drupal_parse_info_file() from .css to .js and fix docblock generally

Also: the correct puncutation for "eg" is "e.g.", and it should be preceded by a semicolon and followed by a comma (it means "for example" and should be punctuated the same):

features: Features available; e.g., features[] = logo.

There seems to be more than just this wrong with this docblock -- some of the information is coming out at the end and some at the beginning of
http://api.drupal.org/api/drupal/includes--common.inc/function/drupal_pa...

sreynen’s picture

Title: Change script example for drupal_parse_info_file() from .css to .js and fix docblock generally » Change script example for drupal_parse_info_file() from .css to .js
Status: Needs work » Needs review
jhodgdon’s picture

Can't we just fix it all up at the same time? Normally, when a doc issue is filed, the fix includes a fix-up of the formatting of the docblock in question.

sreynen’s picture

Some of us can fix it all at the same time; others can't. That's one of the problems with issue scope creep: it discourages less experienced and more casual contributors by requiring wider knowledge and participation. This is admittedly a minor example, but issue scope creep is something we should avoid where we can, and we can here.

jhodgdon’s picture

I see what you are saying, but the replacement line you are proposing is not up to our doc standards, so I find it difficult to accept the patch you are proposing. Probably someone else can do the rest of the edits.

jhodgdon’s picture

Status: Needs review » Needs work
sreynen’s picture

Status: Needs work » Needs review
FileSize
1.41 KB

I see now you're reviewing the code after the patch is committed rather than the patch itself. I still think this approach discourages contributions, but this probably isn't the best place to have that conversation. Attached patch has all suggested changes.

jhodgdon’s picture

Status: Needs review » Reviewed & tested by the community

Thank you.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

Status: Fixed » Closed (fixed)

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