summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordetour2011-10-28 21:12:52 (GMT)
committer Sascha Grossenbacher2011-10-28 21:12:52 (GMT)
commit2b013e7a6144e7221fb7a769eeaa8c2f8f16db8f (patch)
treea8b921c5e3e014d56100a16e8b03d3f51993097e
parent5e7a6c633845fdbeaca41555517c5f57bb3bab20 (diff)
Issue #1325402 by arithmetric: Fixed the API documentation for hook_privatemsg_recipient_type_info().
-rw-r--r--privatemsg.api.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/privatemsg.api.php b/privatemsg.api.php
index b41b794..1a46af7 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',
),
);