API functions in Privatemsg 6
Same name and namespace in other branches
There are two different functions to send messages. Either by starting a new thread or reply to an existing thread.
There is also a function which returns a link to the privatemsg new message form with the recipient pre-filled if the user is allowed to. privatemsg_get_link().
File
- ./
privatemsg.api.php, line 212 - Privatemsg API Documentation
Functions
Name | Location | Description |
---|---|---|
privatemsg_get_link |
./ |
Returns a link to send message form for a specific users. |
privatemsg_message_change_delete |
./ |
Delete or restore a message. |
privatemsg_message_load |
./ |
Load a single message. |
privatemsg_message_load_multiple |
./ |
Load multiple messages. |
privatemsg_new_thread |
./ |
Send a new message. |
privatemsg_reply |
./ |
Send a reply message |
privatemsg_thread_load |
./ |
Load a thread with all the messages and participants. |
privatemsg_unread_count |
./ |
Return number of unread messages for an account. |
privatemsg_user_access |
./ |
Privatemsg wrapper for user_access. |
privatemsg_view_access |
./ |
Check access to the view messages page. |