Issue on this page: http://api.drupal.org/api/function/hook_menu/7
Noticed a typo in the Return Value section's bulleted list.
In the point about 'load arguments' there is this sentence:
For instance, if the user is editing category 'foo' by requesting path 'user/32/edit/foo', the load function user_category_load() will be called with 23 as its first argument, the array ('user', 32, 'edit', 'foo') as the map argument, and 1 as the index argument (because %user_category is the second path component and numbering starts at zero).
Just a typo, I believe 23 should actually be 32 as that is the UID in the path user/32/edit/foo.
Screenshot here: http://skitch.com/thegreat/nk4j2/hook-menu-drupal-api.
I have never filed a documentation bug before, let me know if there is anything else I should do.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | menu_api-hook_menu-655046.patch | 1011 bytes | tnightingale |
Comments
Comment #1
tnightingale commentedHere is a patch. I followed the instructions here: http://drupal.org/patch/create.
Not sure what the naming convention is.
Comment #2
brianV commentedComment #3
brianV commentedOops, forgot to set RTBC in the last post...
Comment #4
dries commentedCommitted to CVS HEAD.