The API documentation for hook_privatemsg_recipient_type_info() does not describe the access callback parameters, rather it shows only the access permission parameters. The privatemsg_roles module now uses the "write callback" parameter instead of "write access".
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | privatemsg-1325402-1-improve_recipient_type_info_docs.patch | 1.42 KB | arithmetric |
Comments
Comment #1
arithmetric commentedAttached is a patch to fix the documentation in the privatemsg.api.php file.
Comment #2
berdirwrite access is still supported, just like read callback is as well. See http://api.worldempire.ch/api/privatemsg/privatemsg.module/function/priv...
Comment #3
arithmetric commentedYes, my point is that either a permission or a callback is supported for both view and write actions.
Comment #4
arithmetric commentedComment #5
berdirOh sorry, I somehow missed the upper part of the patch and just saw the example. Yes, this looks good. Commited to 7.x-1.x, 7.x-2.x and 6.x-2.x ;)
Comment #6
arithmetric commentedThanks!