diff --git a/privatemsg.api.php b/privatemsg.api.php index b41b79492569794bc0d7a48c64c318614150b360..1a46af714cc6a83b77fd46a31d55c42d79b62feb 100644 --- a/privatemsg.api.php +++ b/privatemsg.api.php @@ -646,8 +646,14 @@ function hook_privatemsg_message_status_delete($mid, $deleted, $account) { * example: privatemsg_roles_count_recipients(). * * write access: Optionally define a permission which controls write access * to that recipient type. + * * write callback: Optionally define a callback function that returns an + * access decision (allow = TRUE, deny = FALSE) for whether the current user + * can write to recipients of the given recipient type. * * view access: Optionally define a permission which controls if the user is * able to see the recipient when he is looking at a thread. + * * view callback: Optionally define a callback function that returns an + * access decision (allow = TRUE, deny = FALSE) for whether the current user + * can see recipients of the given recipient type. */ function hook_privatemsg_recipient_type_info() { return array( @@ -659,7 +665,7 @@ function hook_privatemsg_recipient_type_info() { 'autocomplete' => 'privatemsg_roles_autocomplete', 'generate recipients' => 'privatemsg_roles_load_recipients', 'count' => 'privatemsg_roles_count_recipients', - 'write access' => 'write privatemsg to roles', + 'write callback' => 'privatemsg_roles_write_access', 'view access' => 'view roles recipients', ), );