Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
22 Sep 2009 at 20:58 UTC
Updated:
3 Jan 2014 at 00:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
sunStarting point.
Anyone wanting to take over from here?
Comment #2
mr.baileysFirst pass:
drupal_orphp_followed by the name of a function that exists in PHP have now been added to the "php_wrappers" group. This excludes functions likedrupal_encode_path,drupal_session_commit(even if this is a wrapper around some other php session related functions) since these aren't php wrapper functions in the strict sense.drupal_mail: Indirectly, it does wrap around php'smail(unless the MailSystemInterface implementation uses a different means to send the emails), but it does so much more than just wrap, and it doesn't callmaildirectly. I left it out for now, but since it should probably be called instead ofmailwe might want to include it...drupal_rawurlencode()anddrupal_http_build_query()) don't exist yet so are probably part of non-commited patches, and the directive will have to be added in those patches or after those patches get commited.Comment #3
sunAwesome start!
php_eval() is a wonky exception, because the functions belongs to php.module. The PHPDoc shouldn't mention this when explaining the pattern.
Either leave those white-space clean-ups out - or - add a trailing period (full-stop) to the comment here.
Can we please add @ingroup to the individual functions instead and revert the moving of that function?
I'm on crack. Are you, too?
Comment #4
mr.baileysThanks for the review, new patch attached which takes the comments from #3 into account.
Comment #5
sunAwesome! This is almost ready to fly!
Please revert this - there always needs to be at least one newline at the end of a file.
I'm on crack. Are you, too?
Comment #6
mr.baileysI've put the newline back where I found it :)
Comment #7
sunGreat job!
Though, in general, try to avoid changes in code that you are not really touching. It 1) increases the possibility that your own patch will break when another is committed and 2) breaks a lot more patches in the current core queue for no good reason.
Comment #8
dries commentedLooks good. Committed to CVS HEAD. Thanks.
Comment #9
sunHoly!
I have to say, this totally rocks:
http://api.drupal.org/api/group/php_wrappers/7
:)
Comment #10
mr.baileysSmall fix for the 'End of "defgroup php_wrappers".' that is showing up on http://api.drupal.org/api/group/php_wrappers/7
Comment #11
sunThanks!
Actually, I used the "forms" group in form.inc as template. It contains that same output error: http://api.drupal.org/api/group/forms/7
The point is though that these
statements
1) belong to the official/original doxygen syntax, but the API parser doesn't seem to understand that.
2) shouldn't even be contained in the output if the API parser would properly interpret the closing
@}, because that is the hard limit of which code belongs into the group and which code not.So either 1) or 2) would fix that issue. However, both are API parser issues and we really should fix the parser instead of the code, so I'm reverting the status of this issue to fixed.