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".

Comments

arithmetric’s picture

Status: Active » Needs review
StatusFileSize
new1.42 KB

Attached is a patch to fix the documentation in the privatemsg.api.php file.

berdir’s picture

Status: Needs review » Needs work

write access is still supported, just like read callback is as well. See http://api.worldempire.ch/api/privatemsg/privatemsg.module/function/priv...

arithmetric’s picture

Yes, my point is that either a permission or a callback is supported for both view and write actions.

arithmetric’s picture

Status: Needs work » Needs review
berdir’s picture

Status: Needs review » Fixed

Oh 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 ;)

arithmetric’s picture

Thanks!

Status: Fixed » Closed (fixed)

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