function hook_privatemsg_message_status_deleted

7-2 privatemsg.api.php hook_privatemsg_message_status_deleted($mid, $deleted, $account)

Allows response to a deleted change.

Modules implementing this hook should be aware that messages are only marked as deleted and not removed from the database. They will only eventually be deleted by the flushing.

Therefore, modules should not delete data in this hook but in hook_privatemsg_message_flush().

Parameters

$mid: Message id.

$deleted: TRUE when the message was marked as deleted, FALSE when marked as not deleted.

$account: User object, if NULL then the message was marked as deleted for all users.

See also

privatemsg_message_change_delete()

privatemsg_thread_change_delete()

Related topics

2 invocations of hook_privatemsg_message_status_deleted()
privatemsg_message_change_delete in ./privatemsg.module
Delete or restore a message.
privatemsg_thread_change_delete in ./privatemsg.module
Delete or restore one or multiple threads.

File

./privatemsg.api.php, line 417
Privatemsg API Documentation

Code

function hook_privatemsg_message_status_deleted($mid, $deleted, $account) {

}