function messaging_message_callbacks in Messaging 6
Same name and namespace in other branches
- 6.2 messaging.module \messaging_message_callbacks()
- 6.3 messaging.module \messaging_message_callbacks()
Invoke callback list
3 calls to messaging_message_callbacks()
- Messaging_API_Tests::testMessagingBasicAPI in tests/
messaging_api.test - Exercise basic API functions
- messaging_message_send in ./
messaging.module - Send message to array of destinations. The message is rendered just once.
- messaging_store_queue_process_step in ./
messaging.store.inc - Retrieve and send queued messages
File
- ./
messaging.module, line 923
Code
function messaging_message_callbacks($callback_keys, $message, $info) {
while (!empty($message->process) && ($key = array_shift($callback_keys))) {
if ($callback = _messaging_callback_get($info, $key)) {
//dsm($callback);
$message = messaging_message_invoke($callback, $message, $info);
}
elseif (function_exists('messaging_message_' . $key)) {
//dsm("callback $key");dsm($message);
$message = call_user_func('messaging_message_' . $key, $message, $info);
}
}
//dsm($message);
return $message;
}