You are here

function hook_privatemsg_service_enhance_message in Privatemsg 6.2

Add additional information to messages loaded by privatemsg.getThread.

Parameters

$message: Privatemsg message.

Return value

Associative array. The key will be used as the array key in the message array, the value will be used as the value for that message enhancement.

1 invocation of hook_privatemsg_service_enhance_message()
_privatemsg_service_process_thread in privatemsg_service/privatemsg_service.module
Enhance messages and simplify author objects for a thread.

File

privatemsg_service/privatemsg_service.api.php, line 17
Privatemsg Service API Documentation

Code

function hook_privatemsg_service_enhance_message($message) {
  return array(
    'process_time' => time(),
  );
}