Support functions returning references
Damien Tournoud - April 26, 2008 - 12:58
| Project: | API |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
In the Drupal 6+ codebase, we have to functions returning references (&_batch_current_set() in includes/batch.inc and &batch_get() in includes/form.inc). The parser currently does not support that, and this leads to an empty function name being parsed (see it live on api.drupal.org).
Here is a patch that fix the issue.
| Attachment | Size |
|---|---|
| api-reference-functions.patch | 794 bytes |

#1
Setting as patch need review.
#2
Clarify the title.
#3
I've tested this patch, it not works for me. The &batch_get simply not appears in lists at all.
#4
Ah, sorry, I didn't notice that batch_get appears without ampersand. At this point, all works fine.
#5
Committed to HEAD.
#6
Automatically closed -- issue fixed for two weeks with no activity.
#7
the same change should be made in the "// Find undocumented functions." section of parser.inc as well...
#8
#9
This has been done by drumm during the commit [1].
[1] http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/api/parser....
#10
Automatically closed -- issue fixed for two weeks with no activity.