The 'title_callback' and 'description_callback', which are explained on [#140311], are missing from the hook_menu reference for D6/D7.
Marking critical because this is a fundamental hook and these properties are used in basic core modules like user.module so it is about as critical as one can find for a doc issue.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | hook-menu-docs.patch | 1.66 KB | jody lynn |
| #3 | hook-menu-docs.patch | 1.66 KB | jody lynn |
Comments
Comment #1
fgmOf course, [#140311] means http://drupal.org/node/140311
I thought that filter worked for all of d.o. pages, not just issues.
Comment #2
Anonymous (not verified) commentedmoved to Drupal 7
Comment #3
jody lynnI added in a description of 'title callback' and 'title arguments'. I don't think there is a 'description callback'.
However I'm concerned that there is no explanation of how the wildcards work when they are passed on as arguments. This cost me a good bit of time the other day when encountering it for the first time and will baffle many others too I'm sure. The current text:
Integer values pass the corresponding URL component (see arg())
does not come close to explaining the way the wildcards are processed via _load functions.
I'm not sure where to add that into the doc though.
Comment #4
keith.smith commentedMinor, but that patch is slightly inconsistent with the use of spacing between sentences.
Comment #5
jody lynnAh. Alignment fix attached.
Comment #6
rfayIMO, this one was thoroughly hashed out and should now be committed.
Comment #8
dale42I can't find the issue queue issue, but this has already been fixed.
The new text added by this patch:
The current Drupal 7 menu.api.php text:
It was fixed in this CVS patch: http://cvs.drupal.org/viewvc.py/drupal/drupal/modules/menu/menu.api.php?...
Comment #9
dale42