Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
forms system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Nov 2007 at 03:37 UTC
Updated:
4 Feb 2008 at 16:06 UTC
Jump to comment: Most recent file
Comments
Comment #1
webchickWoo, documentation. Could we please have an example in here too? The description itself is a bit jargon-y.
I found this in user_pass() which seems like it'd work as an example:
Comment #2
Crell commentedI am not a Doxygen expert so I don't know if the above will work as intended, but +1 if it does. :-) (I don't know how to test this without setting up a full api.module site.)
I don't think we can do comments within comments, so I don't know how to properly format an example here. However, I would suggest a text change:
"All core modules should declare their form builder functions..." should not say just core. Contrib should be held to the same standards as core, including the OCD use of API documentation. :-) "All modules should declare..."
Comment #3
Crell commentedAlso setting to normal, since a large chunk of api.drupal.org not working as desired is non-minor.
Comment #4
pwolanin commentedwell, looks like my WAG about escaping the @ was correct for the doxygen standard: http://www.stack.nl/~dimitri/doxygen/commands.html#cmdat
but as far as I can tell, the api module doesn't support escaping:
$documentation = preg_replace('!@see ([a-zA-Z0-9_]+) (.*?) \n!', str_replace('%24', '$', l('$2', 'api/group/$1/'. $branch_name)), $documentation);so, the attached patch references a couple example functions but doesn't try to spell it out.
Comment #5
drummThe two groups with similar identifiers might be a bit confusing.
Since there is a description of how to do something, an example would be good. Some user-facing documentation, in addition to the instructuions for core developers, would be good.
Use one space between sentences, not two.
Go ahead and write the documentation as it should be. Not properly parsing escaped @ is a bug and should be fixed in API module instead of degrading documentation quality to work around it.
Comment #6
pwolanin commentedThe choice of group "forms" was not mine - I could even roll a patch to make it "form-builders" or some such?
Comment #7
pwolanin commentedper a long-ago IRC conversation with drumm and comments above, renaming the "form" group to "form_api" and adding more to the docs.
Comment #8
pwolanin commentedoops
Comment #9
pwolanin commentedremoving the word "core" per Crell above.
Comment #10
chx commentedI think this is good to go.
Comment #11
gábor hojtsyComitted, thanks.
Comment #12
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.