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.

CommentFileSizeAuthor
#1 menu_api-hook_menu-655046.patch1011 bytestnightingale

Comments

tnightingale’s picture

Assigned: Unassigned » tnightingale
Status: Active » Needs review
StatusFileSize
new1011 bytes

Here is a patch. I followed the instructions here: http://drupal.org/patch/create.

Not sure what the naming convention is.

brianV’s picture

Issue tags: +Quick fix, +Documentation
brianV’s picture

Status: Needs review » Reviewed & tested by the community

Oops, forgot to set RTBC in the last post...

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD.

Status: Fixed » Closed (fixed)
Issue tags: -Quick fix, -Documentation

Automatically closed -- issue fixed for 2 weeks with no activity.