Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Dec 2010 at 15:51 UTC
Updated:
31 Dec 2010 at 01:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
jhodgdonGood catch! The in-code comments (and the code) agree with your interpretation. The docblock definitely needs to be fixed.
Comment #2
sven.lauer commentedHere is a patch fixing the return value doc.
Comment #3
jhodgdonThere is one technical error:
a) The 'fields_ids" element in the return value should be 'field_ids'.
There are several style/writing/formatting concerns:
b) The proper spelling of the short form of identifier/identification is "ID", contrary to a bunch of existing doc in Drupal, not "id" (which is a psychological term: ego, superego, id).
c) The terminology around "active" was inconsistent. In one place, it says "active fields" and in another, it says "fields that have been marked active". It would be nice if it were consistent.
d) It uses the word "entry" in place of "element", in several spots.
Comment #4
sven.lauer commentedUhm, okay. I just tried to stay as close to the original as possible, including talk of `entries' and such. Here is another version.
Comment #5
jhodgdonUmmm. This patch includes a number of code changes. Maybe you uploaded the wron patch?
Comment #6
sven.lauer commentedUps. Yes, I must have switched things around while renaming patches. This should be the right one.
Comment #7
sven.lauer commentedComment #8
jhodgdonI really would like to see the word "element" used to refer to an element of the returned array, not "entry". As it is now, it's mixed. I realize you didn't write the original doc, but if we're doing a patch, let's make it into good, well-written, consistent doc.
Also, don't we use the word "attached", not "assigned" to refer to attaching a field to a bundle?
Comment #9
sven.lauer commentedMy bad, I did not change all "entries" to "elements". But now.
I did not change the "assigned" to "attached", for it seems to me that that is not quite how the words are used. From http://drupal.org/node/443540#field_bundles :
So, a field is attached to a bundle, forming an instance (in a way), so I guess it would be technically 'wrong' to speak of a field attached to an instance. I don't like "assigned", either, though ... so I went with "instances of that field".
Comment #10
sven.lauer commentedArgs. The "assigned" change was not in the last patch. I should not keep switching version control systems.
Comment #11
jhodgdonI like the current wording, nice work!
There is a typo near the bottom "eelement" that needs to be fixed... and a few lines that end in spaces (we don't like to have extra spaces at the end of the line -- you might try finding a setting in your editor that would either remove them automatically or at least highlight them). Other than that, I think it's ready to go.
Comment #12
jhodgdonComment #13
sven.lauer commentedMaybe this time, I'll get it right ... that's a lot of patches for a simple issue. I am learning (also, I thought my editor was set up to remove the trailing whitespace ...).
Comment #14
sven.lauer commentedComment #15
jhodgdon6 patches for one issue is fairly normal if not minimal, and as you said, you are learning (and getting your development environment set up right, apparently). :)
If you'd like to work on more patches, you can go to http://drupal.org/project/issues/drupal and search for issues in component "documentation", preferably on Drupal 7.x. There are several. If you specifically want fairly easy issues, you can do an advanced search and look for the "Novice" tag.
Anyway, this patch looks good -- thanks!
Comment #16
yched commentedPatch is good on my side too - thanks @sven.lauer, and thanks one more time @jhodgdon !
Comment #17
dries commentedCommitted to CVS HEAD. Thanks.