hook_node_access_records() doc is badly formatted
jhodgdon - October 20, 2009 - 23:40
| Project: | Drupal |
| Version: | 6.x-dev |
| Component: | documentation |
| Category: | bug report |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | closed |
| Issue tags: | Novice |
Description
The return value section of the doc for hook_node_access_records() in D7 and D6 should be a bullet list for readability, but it isn't.
http://api.drupal.org/api/function/hook_node_access_records/7

#1
Also, it references hook_node_grants(), but there are no () on the function name, which makes it not turn into a link.
#2
Here's a patch that cleans up the documentation for hook_node_grants(), and also the companion hook_node_access(). I think it makes more sense than the original.
If accepted, should also be ported to Drupal 6.
#3
Committed to CVS HEAD. Thanks.
#4
Needs port to Drupal 6.
#5
These are in the contrib repository in Drupal 6, so I fixed directly there.
http://drupal.org/cvs?commit=280224
#6
Automatically closed -- issue fixed for 2 weeks with no activity.